Skip to content
Toolbento

Code to image

Turn a code snippet into a sharp, highlighted image for slides, docs and social posts.

Everything stays on this device

Code to image runs in your browser. The text and files you add are worked on by this device and are never uploaded, to us or to anyone else.

  • No uploads. The page is blocked from sending data to any other server.
  • No account, cookies, ads or tracking.
  • Fonts and scripts come from toolbento.app itself, so the page makes no requests to other companies.
  • Closing the tab clears your text and files from memory.

Read the full details on the privacy page.

Theme
Theme

Image

Missing a feature or found a bug in Code to image? Tell me on X (@_andrewtran) or by email.

How to use Code to image

  1. Paste your code and choose its language.
  2. Pick a theme, a background colour and whether to show the window bar.
  3. Download the PNG.

Questions and answers

Is my code sent anywhere?

No. The image is drawn by your browser on this device.

Why is the image so large?

It is drawn at twice the size it is shown, so the text stays sharp on high-density screens and when a slide is projected.

My language is not listed. What should I pick?

Pick the closest one: most languages with curly brackets look right as JavaScript or C. Plain text turns colouring off.

Esc

Loading tools