Free tools Windows power users keep installed
One-click scans. No signup required.
Fastest method: show the code at a readable size, press Windows + Shift + S, choose rectangular capture, and drag around the lines you need. For a polished image with syntax colors and a consistent frame, select the code in VS Code and run a code-screenshot extension such as CodeSnap. Before sharing, crop tightly and remove secrets, tokens, private paths, and unrelated UI.
Choose the right capture method
| Method | Best for | What you control | Trade-off |
|---|---|---|---|
| Windows Snipping Tool | A one-off screenshot of anything on screen | Any rectangular area, including editor context | It captures pixels rather than understanding code, so framing and readability are your responsibility |
| VS Code extension (for example, CodeSnap) | A shareable code image with syntax highlighting | Selected lines, styling, and image export | Requires installing and learning an extension; commands and shortcuts can change after updates |
| HTML/API capture | Repeatable images from hosted code examples or generated HTML | Viewport, CSS, device scale, waits, and automation | A local editor must be exposed as a page or rendered to HTML first |
Use the first method when speed matters. Use CodeSnap when presentation matters. Use an API when you need the same result for many URLs, a documentation build, or an automated workflow.
Prepare the code before you capture it
- Open the exact file and lines. Remove unrelated tabs, terminal output, minimaps, and side panels unless they provide necessary context.
- Make text readable. Increase the editor font size and zoom until punctuation, indentation, and line breaks remain clear at the final image size.
- Select only the useful lines. A focused 10-line example is easier to read than an entire file. Keep enough surrounding context that a reader can understand the snippet.
- Check sensitive data. Replace API keys, passwords, bearer tokens, customer data, private hostnames, and local file paths before capture. Cropping after the fact is not a substitute for removing a secret from the visible code.
- Choose a lossless format when text clarity is important. PNG is a practical default. The Code Screenshot marketplace listing documents PNG and SVG export as available extension capabilities; use SVG only where the destination supports it.
Capture a code snippet with Windows Snipping Tool
Microsoft describes Snipping Tool as a way to copy words or images from all or part of a PC screen. Its capture modes include rectangular, freeform, window, and full-screen snips.
- Open the code in your editor and arrange the window so the snippet is fully visible.
- Press Windows logo key + Shift + S.
- In the snipping toolbar, choose Rectangular mode.
- Drag from one corner of the code area to the opposite corner. Include the line numbers only if they help the reader refer to a line; otherwise leave them out.
- Release the mouse. The capture is copied and a notification opens Snipping Tool for editing.
- Use the editor to annotate if needed, then save or share the image. Choose PNG for crisp text.
- Open the saved file once and inspect it at 100% size. Confirm that brackets, quotes, commas, indentation, and error messages are legible.
Make a rectangular snip look intentional
- Leave a small, even margin around the code instead of cutting through glyphs.
- Keep the selection wide enough that long lines do not wrap unexpectedly.
- Do not include notification banners, chat windows, or unrelated browser tabs.
- If the code is too small, recapture at a larger editor zoom rather than enlarging a blurry image.
Create a styled image in VS Code with CodeSnap
CodeSnap’s marketplace listing describes a workflow in which you select code, create a screenshot, and copy or save the resulting image. The listing covers Windows, Linux, and macOS shortcut conventions, but extension commands and key bindings can change, so use the command name shown by your installed version.
Recommended Free Tools
#1 Best Overall
- KEYBOARD: The keyboard works for Windows with hot keys that enable easy access to Media, My Computer, Mute, Volume up/down, and Calculator
- EASY SETUP: Experience simple installation with the USB wired connection
- VERSATILE COMPATIBILITY: This keyboard is designed to work with multiple Windows versions, including Vista, 7, 8, 10 offering broad compatibility across devices.
- SLEEK DESIGN: The elegant black color of the wired keyboard complements your tech and decor, adding a stylish and cohesive look to any setup without sacrificing function.
- FULL-SIZED CONVENIENCE: The standard QWERTY layout of this keyboard set offers a familiar typing experience, ideal for both professional tasks and personal use.
- Open the Extensions view in VS Code and install CodeSnap (or another code-screenshot extension you have evaluated).
- Open the source file and select the exact lines to publish.
- Open the Command Palette and run the extension’s screenshot command, or use the shortcut displayed in the extension listing and your current keybindings.
- Review the generated preview. Adjust the selection or editor styling if the image includes unnecessary lines or if text is too small.
- Copy the image to the clipboard or save it to a file, as supported by the extension.
- Choose PNG or SVG when those export choices are available. Verify the saved file in the application where it will be posted.
When a styled extension is the better choice
- Documentation and tutorials: syntax coloring and a consistent frame make examples easier to scan.
- Code reviews and issue reports: selecting only the failing lines keeps attention on the defect.
- Presentations: a generated image avoids exposing your entire desktop.
Do not assume an extension will preserve every editor feature. If a font, theme, ligature, or background looks different in the preview, inspect the actual exported file rather than relying on the editor view.
MacOS and Linux considerations
The cited CodeSnap listing includes shortcut conventions for Windows, Linux, and macOS, so the extension route is portable across those systems. Exact key combinations depend on the installed extension and your current VS Code keybindings. For a built-in capture, use your operating system’s rectangular or area-selection screenshot command, then apply the same preparation, privacy, cropping, and readability checks described above. Do not publish a shortcut as universal: desktop environments and OS versions can remap it.
Export and review checklist
- Legibility: read the smallest text without zooming the image viewer.
- Completeness: include imports, declarations, or a short comment when they are required to understand the snippet.
- Privacy: search visually for credentials, email addresses, customer identifiers, internal URLs, and machine-specific paths.
- Consistency: use the same theme, margins, and image dimensions for a series of examples.
- Accessibility: provide the code as selectable text or an accessible transcript alongside the image; a screenshot alone cannot be searched or copied.
- File integrity: reopen the saved image and check that no scaling, compression, or accidental crop changed punctuation.
Troubleshooting common capture problems
The shortcut does nothing
Confirm that you pressed the Windows logo key, Shift, and S together, and that the keyboard focus is not being intercepted by a remote-desktop or screen-recording tool. If the toolbar still does not appear, open Snipping Tool from the Start menu and start a new capture there.
Rank #2
- Reliable Plug and Play: The USB receiver provides a reliable wireless connection up to 33 ft (1), so you can forget about drop-outs and delays and you can take it wherever you use your computer
- Type in Comfort: The design of this keyboard creates a comfortable typing experience thanks to the low-profile, quiet keys and standard layout with full-size F-keys, number pad, and arrow keys
- Durable and Resilient: This full-size wireless keyboard features a spill-resistant design (2), durable keys and sturdy tilt legs with adjustable height
- Long Battery Life: MK270 combo features a 36-month keyboard and 12-month mouse battery life (3), along with on/off switches allowing you to go months without the hassle of changing batteries
- Easy to Use: This wireless keyboard and mouse combo features 8 multimedia hotkeys for instant access to the Internet, email, play/pause, and volume so you can easily check out your favorite sites
The code is blurry
Recapture at a larger editor font size and save as PNG. Avoid enlarging a small JPEG; interpolation cannot restore punctuation that was never captured.
Quick wins for a faster PC:
Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Repair Windows errors before they cause bigger problemsFix Now →Scan for outdated or missing drivers - takes under a minuteDriver Scan →The selection contains extra panels or lines
Resize the editor, hide unrelated panels, and repeat the rectangular drag. With CodeSnap, change the selected range before generating a new image.
Long lines are cut off or wrapped
Widen the editor before capturing, or select a shorter example. A wider image is preferable to a forced wrap that changes how the code reads.
Rank #3
- All-day Comfort: The design of this standard keyboard creates a comfortable typing experience thanks to the deep-profile keys and full-size standard layout with F-keys and number pad
- Easy to Set-up and Use: Set-up couldn't be easier, you simply plug in this corded keyboard via USB on your desktop or laptop and start using right away without any software installation
- Compatibility: This full-size keyboard is compatible with Windows 7, 8, 10 or later, plus it's a reliable and durable partner for your desk at home, or at work
- Spill-proof: This durable keyboard features a spill-resistant design (1), anti-fade keys and sturdy tilt legs with adjustable height, meaning this keyboard is built to last
- Plastic parts in K120 include 51% certified post-consumer recycled plastic*
Syntax colors are missing
Check that the file has the correct language mode in VS Code. A screen snip reproduces whatever the editor displays; an extension preview may also depend on its supported language and theme settings.
A secret was visible in the first capture
Delete the image from shared locations, rotate or revoke the exposed credential, and recapture after replacing it in the source. Cropping an already shared secret does not make it safe.
Outdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchWindows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallThe extension command or shortcut changed
Open VS Code’s Command Palette and search for the installed extension name. Review the current marketplace listing and keybindings rather than relying on an older shortcut.
Rank #4
- 【Dreamy Rainbow Gaming Keyboard】K521 Gaming Keyboard Adopts a Different LED Backlight Design, Upgraded on the Traditional LED Backlight Effect, Making the Light More Penetrating, Giving You a More Dazzling Visual Effect, Making Your Gaming Process More Enjoyable
- 【One Touch Opens & Visual Feast】The K521 Red Dragon Keyboard has a One-Touch on/off Lighting Button for Added Convenience. It also has a Three-Position Adjustable Breathing Mode and a Four-Position Adjustable Brightness Lighting Mode
- 【Mechanical Feeling & Fast Tapping】The PC Keyboard Keys are Designed for Mechanical Feeling, Giving You a Better Feel During Use and the Ability to Trigger Keys Quickly, Allowing You to Win All Your Games
- 【19 Keys Anti-Ghosting Keyboard】Anti-Ghosting Ensures Every Button Can Be Triggered. This Allows You to Trigger Key Combinations In The Game Accurately, And Each Skill Can Be Accurately Released to Increase Your Winning Rate. Redragon K521 Will Be Your Perfect Partner
- 【12 Multimedia Combination Keys】The K521 Wired Gaming Keyboard is Equipped with 12 Multimedia Keys That Can Greatly Enhance Your Gaming/Office Efficiency and Make It More Convenient to Use
Or skip the browser setup: ScreenshotNeo
If your “snippet” is a hosted documentation page, a rendered HTML example, or a page that contains code, ScreenshotNeo can capture it through one GET request. It is not a direct replacement for selecting lines in a local VS Code window: first publish the example or render your HTML/CSS, then pass that page URL to the API. Its HTML/CSS-to-image option is useful when you want to control the code block’s font, colors, padding, and background in markup.
See the ScreenshotNeo API documentation for parameters and response details. This cURL request captures a page as WebP:
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
Python equivalent:
import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"}, timeout=90)
open("shot.webp", "wb").write(r.content)
Node.js equivalent:
const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);
Replace the example URL with your published code page. You can request PNG, JPEG, or WebP, capture a full page or one element by CSS selector, set dark mode, choose one of 12 device presets or any viewport, use retina scale, and apply custom CSS or JavaScript. For code pages, other relevant controls include hiding selectors, waiting for a selector, delay, or network idle, blocking ads or trackers, supplying headers, cookies, a user agent or Authorization, setting timezone or geolocation, transparent backgrounds, resizing, and a cache TTL. Async jobs with signed webhooks and bulk capture of up to 100 URLs per call are useful for documentation pipelines. Signed links can expose an image in a public <img> tag, while the usage API and OpenAPI specification help with integration.
Best Value
- All-day Comfort: This USB keyboard creates a comfortable and familiar typing experience thanks to the deep-profile keys and standard full-size layout with all F-keys, number pad and arrow keys
- Built to Last: The spill-proof (2) design and durable print characters keep you on track for years to come despite any on-the-job mishaps; it’s a reliable partner for your desk at home, or at work
- Long-lasting Battery Life: A 24-month battery life (4) means you can go for 2 years without the hassle of changing batteries of your wireless full-size keyboard
- Simply plug the USB receiver into a USB port on your desktop, laptop or netbook computer and start using the keyboard right away without any software installation
- Simply Wireless: Forget about drop-outs and delays thanks to a strong, reliable wireless connection with up to 33 ft range (5); K270 is compatible with Windows 7, 8, 10 or later
Why the output is cleaner for published code pages
- Before capture, ScreenshotNeo accepts cookie or consent banners like a visitor and removes more than 60 known consent platforms, newsletter popups, and chat widgets. Each cleanup step can be turned off.
- Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits cost nothing. Response headers identify the page verdict and whether the request was billed with
X-Page-VerdictandX-Billed. - An MCP server provides
take_screenshot,get_page_info, andcapture_pdftools for Claude, Cursor, and other MCP clients.
For repeatability, use a fixed viewport, explicit waits for syntax highlighting or dynamic code blocks, and a cache TTL that matches how often the page changes. A full-page capture can load lazy images; an element selector avoids capturing the rest of the documentation page. PDF output also supports paper size, margins, landscape orientation, and page ranges when your code examples belong in a printable document.
Plans and billing
| Plan | Included shots | Price |
|---|---|---|
| Free | 1,000 per month | $0; no card |
| Starter | 3,000 | $5 |
| Growth | 15,000 | $15 |
| Pro | 60,000 | $39 |
| Scale | 250,000 | $99 |
| Business | 1,000,000 | $249 |
Every feature is included on every plan, and yearly billing gives two months free. Start with 1,000 free screenshots a month—no card required.
Which workflow should you use?
- One local snippet now: Windows + Shift + S, rectangular mode.
- A polished VS Code image: select the lines and use CodeSnap or a comparable code-aware extension.
- Many hosted examples or a build pipeline: render the code as HTML and call ScreenshotNeo with a fixed viewport, selector, and wait strategy.
- A screenshot for an AI agent: use ScreenshotNeo’s MCP tools after the page is available at a URL.
Frequently Asked Questions
Can a screenshot replace the original code block?
No. Keep selectable, copyable code beside the image so readers can search, copy, and use assistive technology.
Should I include line numbers?
Include them when the surrounding explanation refers to specific lines; omit them when they add visual noise or make the code area too narrow.
The Tool Desk
Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →What image format is safest for tiny punctuation?
Use PNG for a raster image. SVG can also preserve sharp text when your capture extension and publishing destination support it.
Can ScreenshotNeo capture my local VS Code window directly?
No. ScreenshotNeo captures a URL or rendered HTML. Publish the example or render the snippet as HTML/CSS first, then capture that page.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

