Runs 100% in your browser
Your data never leaves your device. zero uploads.
Turn a code snippet into a styled image with syntax highlighting, a gradient background, and PNG, JPEG or SVG export.
Use an image when a slide or social post needs a readable code example with a consistent visual style. You edit the code directly in the preview, so you can shorten long lines and trim the example before export. Keep the snippet short enough to remain legible at its intended display size.
Paste a small JavaScript function, select JavaScript, and choose a background with strong contrast. Preview the image at the size it will appear in your post.
An image cannot be selected and copied as source code. Include a text version or repository link when readers need to reuse the example, and remove secrets before sharing.
To use Code to Image, paste your snippet into the editor and pick its language so the highlighting matches. Choose one of the 10 gradient backgrounds, toggle line numbers and optionally add your name and handle, then download a PNG, JPEG or SVG or copy the image as a PNG.
Check that every line you need is visible, because the image captures only what fits in the 500 pixel tall editor, and that no secrets are left in the code. An image cannot be selected and copied as source code, so include a text version or repository link when readers need to reuse the example.
No registration, no tracking of your content, no server uploads. Don't just take our word for it:
Your files and text are processed entirely on your device. Nothing is ever sent to us.
Once loaded, this tool keeps working with your Wi-Fi turned off. Try it.
Open your browser's DevTools → Network tab. You'll see zero requests carrying your data.
More utilities for your next task.
Measure a text string's length and compare counts with and without spaces in a live counter. Free string length calculator that runs in your browser.
Calculate BMI for adult women from height and weight in metric or imperial units, with the standard BMI categories and clear notes on screening limits.
Calculate an adult BMI estimate from height and weight using metric or imperial units, directly in your browser.