Code Screenshot Generator

Paste code and instantly export a polished, Carbon-style PNG image ready for docs, slides, social posts or README files. Syntax highlighting runs entirely in your browser, with switchable color themes, window chrome and line numbers. Also try the Code Playground to run snippets.
Runs entirely locally — nothing is uploaded, no watermark.
Language: Theme: Font size: file name shown in the title bar
PNG width fits the widest line; retina-sharp 2× export.
How it works: the code is tokenised with highlight.js (BSD-3-Clause, bundled locally) and every token is drawn directly onto a canvas, so the exported PNG is a true bitmap — fonts are measured with the browser text engine and non-ASCII characters use the system font stack. Pick a dark theme for slides and a light theme for printed docs. Generated images are yours to use anywhere; note the usual license caveats for code you do not own.