Code Snippet to Image

Paste code and get a crisp, syntax-highlighted window you can share — seven editor themes, five coding fonts, line numbers, a headline, annotations and your own brand.

lead-webhook.js
Measuring…

How to use the Code Snippet to Image

  1. Paste or type your code in the window — the language is detected for you, or pick it yourself.
  2. Choose a theme and a coding font, and set the text size and line numbers.
  3. Name the file in the window bar, or switch to a plain window with no bar.
  4. Highlight the lines that matter, press Hide private to blur keys and tokens, and add a title if you like.
  5. Set the background, padding and watermark — or Apply your brand kit — then download the image or copy it.

Questions

Is my code sent to a server?
No. Highlighting and the image are both done in your browser; your code never leaves the page.
Which languages are highlighted?
JavaScript, TypeScript, Python, PHP, Java, C#, C and C++, Go, Rust, Ruby, Swift, Kotlin, SQL, Bash, HTML, CSS, SCSS, JSON, YAML, Markdown, GraphQL and more. Auto-detect picks one for you.
Can it hide emails, API keys and phone numbers for me?
Yes. Press Hide private above the canvas. It reads the text in the image (in your browser) and blurs every email address, link, API key or token, phone or card number and IP address it finds — all in one step, so a single Undo takes them all off. The reader can miss things in small or unusual text, so check the image before you share it, and use Redact for anything it missed.
How do I add arrows, numbered steps, emoji or a watermark?
Use the toolbar along the top of the canvas: arrows, boxes, circles, highlights, a pen, text, numbered steps, emoji, blur, pixelate, redact and spotlight. Pick a tool, then drag (or click, for text, numbers and emoji) on the image. Choose Select to move, resize or delete what you drew. The Watermark settings add your handle or logo in a corner.
Why does a long line make the image wide?
Code is never wrapped, so it reads exactly as it does in an editor. Break long lines before you paste, or use a smaller text size.
How do I type in the code after drawing?
Press Select in the toolbar (or Esc). While a drawing tool is on, clicks on the canvas draw; with Select on, clicks go to the code.
Can I save my brand colours and look once and reuse them?
Yes — that's the Brand kit. Add up to six brand colours; they appear as background swatches, pen colours and a caption colour. Set up your look (background, padding, corners, shadow, watermark, logo and text font) and press Save current look. From then on, Apply kit puts it on any image in any of the three tools, in one click. It's kept in this browser.
Where can I find images I made earlier?
Open Library at the top of the page. It keeps your last 10 downloaded or copied images from all three tools, in this browser only. From there you can download or copy them again, or press Edit to reopen one with its settings and marks and keep working on it. Clearing your browser's site data removes them.