Code to Image Converter

Syntax-tinted screenshot · local
greet.js
1function greet(name) {
2 return `hello, ${name}`;
3}
4
5console.log(greet('orangebot'));

Paste a snippet, pick a theme, export a PNG that looks like a editor window. Highlighting is a small regex — keywords, strings, numbers, comments — not a full language grammar. Enough for a tweet, not a compiler.

Private by design. Your snippet is highlighted and rasterised in this tab.

FreeNo sign-upRuns in your browser

How to turn code into an image

  1. Paste the snippet. The preview highlights as you type.
  2. Set the chrome. Filename, theme, padding, line numbers.
  3. Download the PNG. 2× raster of the window.

Frequently Asked Questions

Which languages are supported?
The highlighter is generic JS/C-like. Strings, comments and a keyword list. It will not understand Python indentation or JSX as a parser would.
Is the code uploaded?
No.

Use Cases

  • Post a snippet on social without a washed-out screenshot
  • Drop a highlighted example into a slide
  • Make a README hero from a ten-line sample
T
ALL TOOLS · THE CATALOG
477 single-purpose tools · no sign-up
File-processing tools run in your browser. Network and device requirements are described on each tool.