Code Snippet to Image

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

lead-webhook.js
Measuring…

How to use the Code Snippet to Image

  1. Paste or type your code in the box — 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. Set the background and padding, 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.
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.
Can I hide the window bar?
Yes. Choose None under Window for just the code on its background, or Plain for a bar with the file name and no buttons.