Carbon
FreeCreate beautiful images of your source code. Customizable syntax themes, fonts, window styles, and backgrounds. Share code snippets as stunning visuals — the original code screenshot tool.
How to install Carbon as a PWA
Frequently asked questions about Carbon
Is Carbon really the best code-screenshot tool?
Carbon is the original and most-referenced code-screenshot tool, but newer competitors (Ray.so by Raycast, CodeImage, Snappify) offer features Carbon lacks: better preset themes, AI summarization, multi-snippet collages, and team-shared brand kits. For a quick MIT-licensed open-source tool with no account, Carbon is still the simplest choice. For polished marketing visuals, paid alternatives may produce better results faster.
Is Carbon free?
Yes — Carbon is fully free with no account or paywall. The codebase is MIT-licensed (carbon-app/carbon on GitHub) and self-hostable as a Next.js app. There are no paid tiers, ads, or watermarks. The maintainers fund the project via GitHub Sponsors and similar; the hosted carbon.now.sh has been free since launch in 2017.
How does Carbon compare to Ray.so?
Ray.so (by the Raycast team) has more curated theme presets, cleaner default typography, and better social-media-optimized presets out of the box. Carbon has broader language coverage, full open-source code, and more granular customization (custom backgrounds, exact padding control). For a quick beautiful screenshot with sensible defaults, Ray.so wins; for fine control or self-hosting, Carbon wins.
Can I use Carbon offline?
Yes — Carbon is installable as a PWA, and the rendering pipeline (syntax highlighting via Prism.js, image export via dom-to-image) runs client-side. After the first visit caches the bundle, you can generate code screenshots without a network. Cloud-sharing features (Twitter, gist) require network, but local PNG/SVG export does not.
Who uses Carbon in production?
Carbon is used by developer-relations teams at companies like Stripe, Vercel, and Cloudflare for blog post screenshots and Twitter cards, by technical bloggers building Hashnode/Substack content, and by conference speakers preparing slide decks. It has been embedded in dozens of dev-tool tutorials since 2017 and remains the most-referenced code-screenshot tool in developer marketing.
Where Carbon is heading (12-24 months)
- →Carbon's hosted instance has not seen major feature updates since 2022; competitors (Ray.so, Snappify) are pulling ahead on polish.
- →AI-assisted theming or auto-best-shot presets could re-energize the project.
- →Multi-snippet / scrolling-code-video output is the obvious next format for short-form social media.
- →Tighter Twitter/X embed and OpenGraph optimization would maximize the share-loop value.
Related questions
ChatGPT, Perplexity and Gemini usually suggest these next.
- How do I self-host Carbon for team use?
- Does Carbon support custom syntax themes?
- Can Carbon generate SVG output for crisp slide decks?
- How does Carbon compare to Snappify for marketing use?
- Can I batch-generate code screenshots from a script?
More in Development Tools
Offline API documentation browser with 100+ languages and frameworks. Combines MDN, React, Node.js, Python docs into one fast, searchable interface. Works completely offline.
The best regex debugger on the web. Real-time explanation, match highlighting, test strings, and a library of saved patterns. Supports PCRE2, JavaScript, Python, Golang regex.
Google's image compression tool — compare formats (WebP, AVIF, MozJPEG) side by side with live quality sliders. All processing is client-side. A must-have for web developers.
Drag-drop SVG optimizer with live preview. Uses SVGO under the hood — remove metadata, clean paths, reduce file size by 30-80%. Essential for frontend developers.
Check the bundle size of any npm package before installing it. Enter a package name, get instant size stats (minified + gzipped). A critical tool for keeping JS bundles lean.
Full browser-based IDE running Node.js via WebAssembly. Open GitHub repos instantly, run npm packages without installation, share working demos with a URL. No local setup needed.