Code to Image
Turn a code snippet into a shareable image with 8 themes, a window frame, line numbers and gradients. Download PNG or SVG. Free and private.
More options
Code
Stays in your browserPreview
Your image appears here.
Shortcuts: Ctrl+Enter run · Ctrl+Shift+C copy result · / search (use ⌘ on Mac)
Free Code to Image Generator
Paste a snippet and get a clean image to share in a post, a slide or a document. Choose a theme, a window frame and a background. It gives developers a quick browser-based way to solve a focused code to image task before moving the result into a project.
How to make a code image
Paste or type your code on the left. The picture updates as you change the options. Choose a size and press Download PNG.
Common mistakes
- Very long snippets: the text gets too small to read. Share a few lines at a time.
- Wrong colours: choose the language yourself when automatic detection guesses wrong.
Frequently asked questions
How do I make a screenshot of code?
Paste your code, pick a theme and a background, then press Download PNG. The image is drawn in your browser.
Which size should I download?
1x is good for a quick share. 2x is sharp on most screens. 4x is for slides or print.
How do I highlight lines?
Type the line numbers in the Highlight lines box, for example 1,3-5. Those lines get a coloured bar behind them.
Is my code uploaded?
No. The image is built in your browser and nothing is sent to a server.
How do I use this code to image tool?
Use the interactive controls above; processing stays in your browser and the result is intended as a practical starting point for development work.
More Frontend & Design
User-Agent ParserSee which browser and device a visitor usesSVG OptimizerMake SVG images smallerColor ConverterConvert colours between HEX, RGB and HSLColor Blindness SimulatorSee how colour-blind people see your designCSS Effects GeneratorCreate gradients and shadows visuallyMeta Tag / Open Graph PreviewPreview how your page looks on Google and socialImage Resizer / CropperResize photos, including passport sizeBase64 Image ConverterTurn an image into text code, and back