Code to Image
Turn code into a beautiful, shareable image. Syntax highlighting, themes, backgrounds, and one-click export — all in your browser.
Exported at 2× · runs in your browser
Turn a code snippet into a beautiful, shareable image — perfect for X/Twitter, blog posts, slides, and docs. Syntax highlighting, editor themes, gradient backgrounds, and a window frame, exported as a crisp 2× PNG, all in your browser.
How to use Code to Image
- 1Paste your code and pick its language.
- 2Choose a theme, a background, and the padding.
- 3Toggle the window frame and add an optional title.
- 4Download the PNG or copy the image straight to your clipboard.
Frequently asked questions
Still have questions?
If you can’t find the answer you’re looking for, our support team is here to help.
Contact SupportKeep going.
JSON Formatter
Format, validate, and minify JSON. Catches syntax errors with line + column.
JWT Decoder
Decode JWT headers + payloads. Surfaces issued, expires, and notBefore timestamps.
Base64 Encode / Decode
Encode text to base64 or decode base64 back to text. UTF-8 safe.
Image Compressor
Compress JPG, PNG, WebP, and AVIF images without quality loss. Free, instant, and 100% private.
PDF Merger
Combine multiple PDFs into a single file. Drag to reorder, processed in your browser.
Image Resizer
Resize images by pixels or percentage. Presets for Instagram, X, HD, 4K — and bulk supported.

