All tools

Code to Image

Create code screenshots with syntax highlighting. Export as PNG or JPEG.

Optional serverImage generation runs in your browser. Saving or sharing a snippet sends its code to SpeedyTools servers.
Share:
Mode
Choose between code screenshot or HTML renderer mode
Paste Your Code
Paste code to generate a beautiful screenshot

Tip: Press Tab to insert spaces. Use the Format button to auto-indent your code.

No code entered

Paste your code above to generate a beautiful screenshot.

About code to image

Create code screenshots for social media, documentation and presentations. Pick one of 13 syntax highlighting themes, set a solid or gradient background, and export at twice the on-screen resolution. Rendering and export happen in your browser. Saving or sharing a snippet uses SpeedyTools servers.

Features
13 syntax highlighting themes
20+ programming languages
17 backgrounds, including gradients
Export as PNG or JPEG
Use cases

Social media

Post code snippets as images on Twitter, LinkedIn or Discord

Documentation

Add code examples as images to docs and tutorials

Presentations

Put readable, highlighted code on your slides

Blog posts

Add code images to technical blog posts

Frequently asked questions

How do I create a code screenshot?

Paste your code, choose a theme and background, and download the image. The preview updates as you change settings.

What programming languages are supported?

Over 20 languages, including JavaScript, TypeScript, Python, Rust, Go, Java, C++, HTML, CSS, SQL and Bash. The tool can also detect the language from your code.

What themes are available?

13 themes, including Dracula, One Dark Pro, GitHub Dark, GitHub Light, Monokai, Nord, Vitesse and Solarized.

Can I customize the appearance?

Yes. You can change the padding, font size, line numbers, window controls and background.

What image format is output?

PNG or JPEG, rendered at twice the on-screen resolution. PNG keeps a transparent background if you choose one.

Private by default

Code rendering and image generation happen in your browser. The tool sends your code to SpeedyTools only when you save or share a snippet.