Turn code into an image.
Turn your code into a sharp image with syntax colors, a window frame, and a custom background.
Turn code snippets into shareable images.
Create a code image for a release announcement, tutorial, presentation, or social post. The generator adds a window frame and syntax colors around your supplied code. Choose an Ink, Paper, or Midnight theme, with optional line numbers and an editable window title.
Paste your snippet.
Enter your code in the Code tab and select its language. The text stays in your browser.
Refine the window.
Choose Ink, Paper, or Midnight. Set the title, font size, line numbers, background, padding, and output width.
Share the result.
Download a PNG or copy the image where supported. Open in editor to add text or place the card in a larger composition.
- Supported input
- Typed or pasted code: JavaScript, TypeScript, Python, HTML, CSS, JSON, or plain text.
- Export options
- A PNG code card with your chosen window style, syntax colors, and background.
- Limits and considerations
- The tool renders your source text; it does not run or validate code. Review snippets for secrets before sharing. The output is a raster image, not an SVG.
More tools.
View all tools- App Store screenshotsDesign the whole listing together.
- Phone mockupsPut your app in an iPhone.
- Laptop mockupsGive your desktop app a frame.
- Tablet mockupsShow the bigger picture on an iPad.
- Clean framesRounded edges. Just enough shadow.
- Browser mockupsYour website, in a browser window.
- Screenshot backgroundsAdd space, color, and a soft shadow.
- Background generatorShape the light, color, and texture.
- Tweet to imageTurn a public post into an image.
Questions people ask.
Which languages can I use for code images?
The language selector includes JavaScript, TypeScript, Python, HTML, CSS, JSON, and plain text. Plain text is useful for snippets that do not need syntax colors.
Can I change the code image’s theme and size?
Yes. The Style tab has light and dark window themes, background colors, font size, padding, output width, and line-number controls. The preview and PNG export use the same renderer.
Is my code uploaded to a server?
No. Editing, processing, and export run locally in your browser. No account or image upload is required, and the tool does not add a watermark.
Can I continue working on the result in Imagier?
Yes. Choose Open in editor to carry the rendered image into the main editor locally. You can add backgrounds, frames, text, and other composition elements there. The handoff is a flattened image.