Code2Img

Code2Img and Carbon

Carbon made the code screenshot a genre. Code2Img is that idea with an API, share pages, an MCP server and exports up to 4× built in.

Carbon established the genre: "create and share beautiful images of your source code", as its own home page puts it, with an editor you start typing into or drop a file onto. Code2Img is that idea carried into places Carbon was never designed to go — a script, an agent, a link that has to unfurl. Checked against Carbon's own published description on 15 November 2026.

What Carbon is

A well-known, widely used editor for code screenshots: paste or drop a file, choose a theme and a language, adjust the window and background, export. Its reach is part of its value — a Carbon image is instantly recognisable, and it has been the default visual for code on the web for years. Carbon also publishes its own integrations, bundling Carbon into editors such as VS Code and IntelliJ.

What Code2Img adds, and why

Where Carbon is ahead

Editor breadth and ecosystem: the integrations inside other editors, and the sheer number of themes and window presets people have published for it over the years. If you want Carbon's exact look, or you want a Carbon button inside your IDE, Code2Img is not a substitute — and it is not trying to clone someone else's visual identity.

The honest summary

Both tools make a good-looking image of code. Carbon is the reference implementation of the genre and has the integrations; Code2Img is built so the same renderer can be called by a machine, at a higher scale, and can hand back a URL that previews properly in a chat window. If your last five screenshots were made by hand, either is fine. If your next five hundred have to be made by a script, that is the case Code2Img was written for. Compare the output yourself.

Compare the other tools

The same comparison, for the editor you might be switching from.

Code screenshots by language

Theming and settings that read well, one guide per language.

Try it on a snippet you have open.

The editor needs no account, and the API answers on a free key.