Free Code Screenshot Generator Online
Transform source code into high-resolution syntax-highlighted screenshot mockups. Choose macOS window styles, themes, and background gradients.
Beautiful Code Screenshots
Paste your code, pick a language and theme, and download a PNG at twice the screen size.
- 13 syntax themes
- 29 languages
- macOS, Windows, Browser frames
- 2x PNG export
No sign-up required. Works entirely in your browser.
Who Uses Code Screenshots?
For anyone who wants code people can read in a post, a slide or a lesson, without a cluttered editor screenshot.
Developers & Engineers
Share a snippet on LinkedIn, X or a dev forum as an image that keeps its colors and spacing. Pick a dark theme for feeds and a light one for docs.
- A tidy snippet image for a social post
- Project highlights for a portfolio or README
- A short code tip with a macOS or Windows frame
Technical Writers
Add code images to blog posts, tutorials and newsletters where code blocks don't render well. Keep one theme and padding so every image in a series matches.
- Code images for blog posts and newsletters
- A code still for a video thumbnail or intro
- Matching snippets for an ebook or course page
Educators & Speakers
Put readable code on slides and handouts. Raise the font to 20 px for a big room, and use a light theme for printed sheets.
- Large, readable code on conference slides
- Example code for online course lessons
- Light-theme snippets for printed workshop sheets
Code to Image With Themes, Frames and Backgrounds
29 languages, 13 themes, four window styles, 13 backgrounds plus a color picker, and sliders for font size and padding.

Highlight Code in 13 Syntax Themes
Pick the language, then switch between themes like Dracula, Nord, Tokyo Night and GitHub Light. Keywords, strings and comments get the theme's colors, and the preview redraws on each change.
- 29 languages, from Python to Terraform
- 10 dark and 3 light themes
- Keywords, strings and comments colored

Frame Code in a Window and Background
Wrap the snippet in a macOS, Windows or Browser bar, or show it bare. Then set the backdrop to one of 9 solid colors, 4 gradients or any color you pick.
- macOS, Windows, Browser or no frame
- 9 solids, 4 gradients, custom color
- Padding from 0 to 80 px
Download a 2x PNG
Download PNG saves the whole framed image, background included, at twice its size on screen. The file is named code-screenshot.png, so rename it if you save several.
Font Size and Tab Title
Set the code size from 11 to 20 px and type a file name such as index.ts for the window bar. The code uses your device's monospace font.
Free, No Sign-Up, No Watermark
Make as many code images as you like without an account or a daily cap. The PNG carries only your code and frame, with no logo added.
Preview Redraws as You Edit
Changes to the code, theme, frame or sliders show in the preview as you make them. The image dims for a moment while new colors are worked out.
How to Create a Code Screenshot in 3 Steps
Paste your code.
Click Create Screenshot, paste the snippet into the Code box and choose its language from the list. There is no auto-detect, so pick the one that matches.
Style the image.
Choose a theme, a window style and a background, then move the font size and padding sliders. Add a tab title if you want a file name in the bar.
Download the PNG.
Check the preview, then click Download PNG. You get code-screenshot.png at twice the preview size, ready for a post, a doc or a slide.
Frequently Asked Questions
Answers about languages, themes, line numbers, backgrounds and the PNG you download.
How do I turn code into an image?
Open the editor, paste your snippet and pick its language. Choose a theme, a window frame and a background, then click Download PNG. The image saves to your device as code-screenshot.png at twice the preview size, ready to post or drop into a slide.
Which programming languages can I highlight?
You can pick from 29: TypeScript, JavaScript, Python, Rust, Go, Java, Kotlin, Swift, C, C++, C#, Ruby, PHP, HTML, CSS, SCSS, JSON, YAML, TOML, Bash, shell, SQL, GraphQL, Markdown, Dockerfile, Terraform, Vue, JSX and TSX. The list shows short ids, so C++ appears as cpp and C# as csharp.
What syntax themes are available?
There are 13 themes. Ten are dark: Vitesse Dark, GitHub Dark, Dracula, Nord, One Dark Pro, Monokai, Catppuccin Mocha, Tokyo Night, Min Dark and Solarized Dark. Three are light: Vitesse Light, GitHub Light and Solarized Light. The editor starts on Vitesse Dark.
Can I show line numbers in the code image?
Not at the moment. The editor shows a Show line numbers box, but it doesn't add numbers yet, so the PNG has none. To point readers to a line, quote it in your text or add a short comment in the code itself.
What size is the downloaded PNG?
The PNG is twice the size of the framed preview in each direction. The frame is at least 400 px wide on screen, so the file is at least 800 px wide. Longer lines, a larger font or more padding make it bigger.
Can I use a transparent or custom background?
You can use a custom color but not a transparent one. Pick one of 9 solid colors or 4 gradients, or open the color picker for any solid shade. The picker can't build a gradient, and there is no transparent option, so the area around the window always has a color.
What do the window styles look like?
macOS draws red, yellow and green dots. Windows puts the tab title on the left with minimize, maximize and close signs on the right. Browser adds back and forward arrows and an address bar. None shows only the code on the background.
Do I need a VS Code extension to screenshot code?
No. Copy the code from VS Code, PyCharm or any other editor and paste it here. A plain screen capture also grabs tabs, sidebars and your own color setup, while this tool draws only the snippet, in the theme and frame you choose.
Why is my code not colored correctly?
Check the Language menu first. The tool never guesses the language, so Python code set to TypeScript gets the wrong colors. Pick the language that matches your snippet. If highlighting ever fails, the code appears as plain text in one color instead of an error message.
Can I change the code font?
You can change the size but not the typeface. The slider runs from 11 to 20 px. The code uses your device's built-in monospace font, so the same snippet can look slightly different when made on a Mac and on Windows.
Is the code screenshot tool free, and is my code sent anywhere?
Yes, it is free with no account, no watermark and no daily limit. Your code is never sent to a server; the image is drawn and saved on your device. On the live site, Google Analytics records the page visit, not your code.
Explore More Tools
Discover other free tools that work great alongside this one
Tweet Screenshot Generator
Create tweet mock-up images for sharing
Hash Generator
Generate SHA-1, SHA-256 and SHA-512 hashes of text or files
Base64 Encoder
Encode and decode Base64 strings
Diff Checker
Compare two texts side by side
QR Code Generator
Make and download free QR codes in your colors
Image Compressor
Reduce file size without losing quality