About Code Screenshot
Code Screenshot makes clean, shareable images of code for posts, docs, slides and READMEs. Paste or drop a file, and the language is detected and highlighted. Pick one of 10 themes and a background, click line numbers to spotlight the lines that matter, or switch on diff mode for added and removed lines. Then download a PNG at up to 4× resolution, an SVG, or a copy-paste HTML embed.
Everything runs in your browser. Your code is never uploaded, and share links carry the code inside the link itself.
FAQ
How do I make a screenshot of my code?
Paste your code into the editor (or press ⌘V / Ctrl+V anywhere on the page, or drop a file onto the preview). Choose a theme, background and window style, then click Download PNG. Use 2× or 4× for crisp images on high-density screens and slides.
Which languages are highlighted?
TypeScript, TSX, JavaScript, JSX, Python, HTML, CSS, JSON, Bash, Go, Rust, Java, C, C++, C#, SQL, Markdown and YAML. Auto-detect picks the language as you type, or you can choose it yourself.
How do I highlight specific lines?
Click a line number to spotlight that line; the others are dimmed. Click more numbers to add lines, or click again to remove one. Diff mode colours lines that start with + green and lines that start with - red.
Is the image sharp enough for slides?
Yes. The PNG is drawn directly at the chosen scale (1×, 2× or 4×) instead of being a screenshot of the page, so text stays crisp. For print or further editing, export the SVG.