Share code as a picture that is easy to read
Paste a snippet and get a polished image of it: syntax highlighted in an editor theme, framed in a macOS or Windows window, on a gradient or solid background. It is the kind of picture that reads well in a tweet, a slide, a blog post or documentation — and it is drawn in your browser, so your code is never uploaded.
How to turn code into an image
- 1Paste or type your code. The language is detected automatically, or choose it yourself.
- 2Pick a theme, font, size and line height, and turn on line numbers if you want them.
- 3Choose the window — macOS, Windows or none — and give it a file name as a title.
- 4Choose a gradient, a solid colour or a transparent background, and how much padding surrounds the window.
- 5Download PNG, JPEG or WebP at 1× to 4×, or SVG; or copy the image straight to the clipboard.
Sharp at any size
Images are exported at 2× by default, so they stay crisp on high-density screens and in slides. Go up to 4× for print or very large displays.
SVG keeps the code as real text: it scales without limit and stays small, though it is drawn with the fonts of whoever opens it.
Languages and themes
- Languages
- JavaScript, TypeScript, Python, Java, C, C++, C#, Go, Rust, PHP, Ruby, Swift, Kotlin, Dart, SQL, Bash, PowerShell, HTML, CSS, SCSS, JSON, YAML, Markdown, Dockerfile, Lua, R and plain text.
- Themes
- Dracula, One Dark, GitHub Dark, GitHub Light, Monokai, Nord, Night Owl and Solarized Light.
Your code stays on your device
Highlighting and drawing happen in the browser, so private or unreleased code is safe to paste. There is no account and no watermark.
To tidy the code first, run it through the code minifier & beautifier; to place the image on a device, use the device mockup generator.
Frequently asked questions
- Is this like Carbon?
- Yes — it makes the same kind of image: highlighted code in a window on a background. It runs entirely in your browser, without uploading the code.
- Can I make the background transparent?
- Yes. Choose None under Background and export as PNG, WebP or SVG. JPEG has no transparency, so it is filled with white.
- Why does the SVG look slightly different on another computer?
- SVG text is drawn with the fonts installed where it is opened. If the chosen font is missing, a similar monospace font stands in. PNG, JPEG and WebP look the same everywhere.
- Is there a limit on how much code I can use?
- Not a fixed one, but very long or very wide code makes a very large image, which some browsers cannot create at high scales. Lower the scale or trim the snippet if the export fails.
- Is my code uploaded?
- No. The code is highlighted and drawn in your browser and never leaves your device.