Skip to content
Local

Developer

Code to Image

Turn code into a clean PNG with syntax colours, a window frame and a background, for posts, slides and docs.

Runs in your browser. Files stay on this device.Built with highlight.js (BSD-3-Clause)

Open Code to Image

Free, no account, no watermark and no daily limit.

Open Code to Image

How to use Code to Image

  1. 1Paste code or drop a source file.
  2. 2Pick the language, theme, background and text size.
  3. 3Download the PNG.

Questions

Which languages are coloured?

JavaScript, TypeScript, Python, Go, Rust, Java, Kotlin, Swift, C, C++, C#, PHP, Ruby, Shell, SQL, HTML, CSS, JSON, YAML and Markdown. Detect picks one for you.

Can the background be see-through?

Yes. Pick None and the PNG has a transparent background, with only the code card drawn.

How sharp is the image?

Sharpness 2× draws at twice the size, which looks crisp on most screens and slides. Use 3× for print.

Is my code uploaded?

No. The image is drawn in your browser.

Is it free?

Yes. No account, no watermark and no daily limit.

Esc