Code to Image

Turn highlighted source code into a polished PNG with themes, line numbers, and background controls.

This tool runs in your browser.
JavaScript

Code is highlighted locally and is never executed.

How to use

  1. 01Paste source code and review the suggested language.
  2. 02Choose a theme, font size, background, and line numbers.
  3. 03Create and download or copy the PNG.

FAQ

Is automatic language detection always correct?

No. Detection is a best-effort suggestion; use the language selector to correct it.

Is pasted code executed?

No. The code is only escaped, highlighted, and rendered as an image.

What resolution quality does the exported code screenshot provide?

It renders at 2x and 3x retina pixel densities with crisp typography and subpixel font smoothing, ideal for technical blogs and slide presentations.