$ run --tool
Code Screenshot Beautifier
Turn any code snippet into a beautiful, shareable screenshot — pick a theme, background and font size, then export as PNG.
Preview
Features
- ✓8 professional themes — One Dark, Dracula, GitHub Light, Monokai, Night Owl, Nord, Solarized, Catppuccin
- ✓Syntax highlighting for 14+ languages
- ✓Auto-formatter for JSON, SQL, JavaScript and TypeScript
- ✓Customisable background, padding, font size and corner radius
- ✓Export at 1×, 2× or 3× resolution — full code, nothing cropped
- ✓Line numbers and macOS window dots toggle
- ✓Runs entirely in your browser — nothing is uploaded
How to use
- 1Paste your code into the editor
- 2Pick a language, theme and background
- 3Optionally click Auto Format to beautify the code first
- 4Click Download PNG to save the screenshot
Frequently asked questions
Is any code sent to a server?+
No — highlighting, formatting and image export all happen in your browser using client-side libraries.
Why does Auto Format only work for some languages?+
JSON uses the built-in JSON.parse, SQL uses sql-formatter, and JS/TS uses a lightweight auto-indent. Full Prettier support would require a server round-trip.
The export cuts off my code — what do I do?+
The exporter captures the full scroll height of the preview, so the entire code block is always included. Try exporting at 2× for sharper images.
Related tools
code
JSON Formatter
Format, validate and minify JSON instantly, with clear error messages.
code
Console Color Code Generator
Pick colors and styles per line and get ready-to-paste console.log statements with ANSI escape codes.
code
SQL Visualizer
Paste any SQL query, get it formatted, highlighted, and broken down into its logical clauses.
Need a tool that isn't here yet?
ToolsForce is growing every week. Tell us what to build next.
Request a tool