Code Screenshot

Paste a snippet to get a clean, highlighted image of it for a post, a slide or your docs. Pick the language, theme, padding and font size, then download the PNG. The code stays in your browser.

Runs in your browser. Nothing you type is uploaded.

Your numbers

Result

Code screenshot7 lines

About 688 × 353 pixels, saved at 2× for sharp text. Drawn in your browser; your code is not uploaded.

Longest line
57 characters
Language
JS
Theme
Dark

How it works

Highlighting
A small tokenizer marks keywords, strings, numbers and comments for each language. It is simple by design, so very unusual syntax may stay plain.
Sharp output
The PNG is drawn at twice the screen size, so text stays crisp on high-density screens and when a site scales the image down.
Privacy
The image is drawn on a canvas in your browser. Your code is not uploaded anywhere.

Questions

What size works best on X or LinkedIn?

Keep snippets short, around 5 to 25 lines, and use a font size of 16 to 20. Wide images shrink a lot in feeds, so wrap long lines.

Why is the PNG larger than the preview?

It is saved at 2× resolution for sharp text. Sites scale it down when they show it.

Should I post code as an image or text?

Images look good in feeds but cannot be copied or read by screen readers. Add the code as text in a reply or alt text when you can.

Get CapyLaunch Weekly

New indie launches and the week in AI tools and models, every Monday. Free, and you can unsubscribe anytime.

We send a confirm link first. Privacy

Your launch, this week. Free.

A reviewed listing, a permanent page with a link to your site, and feedback from makers who actually care.

Start my launch →or browse toolsFree to submit. Every listing is reviewed before it goes live.