Skip to content

Code to image: Comet Snap turns your code into a clean image

Paste or type your code, pick a theme, background and size, then download or copy the image. Your code never leaves your browser.

Your files never leave this device.

Paste or type code, or open a code file. A re-editable PNG or SVG made here opens with all its settings.

Pick the language, or name the file in the window title (app.py) and Auto follows it.

Loading the code colors…

Size
Look
15px
Frame
Background
Marks

Line numbers as on the image: 3-5, 9

Line numbers as on the image: 3-5, 9

Line numbers as on the image: 3-5, 9

Line numbers as on the image: 3-5, 9

Line numbers as on the image: 3-5, 9

Brand

Your handle, picture and saved looks stay in this browser.

Format
Scale

The PNG or SVG then holds your code and settings, so anyone with the file can read the code. Turn it off for code you don't want to share.

Your code never leaves your browser.

How to use it

  1. Paste or type your code, or open a code file.
  2. Pick the language, a theme, a background and a window frame.
  3. Choose a size: auto width, a blog column, or a post size for X, LinkedIn or Instagram.
  4. Download a PNG, JPG, WebP or SVG, or copy the image.

faq

Questions about Code to image

Is my code uploaded?

No. The highlighter and canvas painters run entirely in your browser. Your code never leaves your device and nothing is logged or stored.

Can I edit the image later?

A PNG or SVG saved with Re-editable on opens here with its code and settings intact. This survives files shared by Drive, email or Slack, not uploads to X, LinkedIn, WhatsApp or Instagram, which strip it. Anyone with the file can read the code.

Does the SVG keep real text?

Yes. The SVG export uses clean vector text elements you can select and copy, without foreignObject or embedded HTML.

Can I use my own VS Code theme?

Yes. You can load any VS Code color theme JSON or JSONC file directly into the tool.

Which languages are coloured?

The tool recognizes 33 popular programming languages automatically from the file name or title. You can create a code screenshot with syntax highlighting for JavaScript, TypeScript, Python, Rust, Go, HTML, CSS, JSON, and more.

JPG and PNG to PDF

Put your photos in order, pick the page size, and download one PDF. Nothing leaves your device.

Merge PDF Files

Choose your PDFs, put them in order, and download one combined file. Nothing is uploaded.

Remove background

Cut the background out of your photo in seconds, pick any background, and download. Nothing leaves your device.

Need something custom? See our services.