Code2Img

Code2Img and ray.so

Both turn a snippet into a picture. ray.so is a fast, beautiful one-off export; Code2Img adds the parts you need when the image has to come from a script, an API or an agent.

ray.so and Code2Img both answer the same first question — how do I turn this snippet into a picture that does not look like a terminal screenshot — and then diverge on what happens next. This page says where, from each product's own published description, as of 15 November 2026. If something here is out of date, tell us and it gets fixed.

What ray.so is

ray.so describes itself, in one line, as a way to "create beautiful images of your code": an editor, a small set of themes, a few toggles (padding, background, dark or light), and an export button that hands you an image. It is fast, it is pleasant, and it does exactly one thing. There is no account in the way of the first export, and there does not need to be.

Where the two agree

The whole first thirty seconds. Paste code, pick a theme, set the padding and the background, export a PNG. Both give you a card with rounded corners, a window chrome if you want one, and syntax colours that came from a real grammar rather than a hand-rolled regex. If all you want is one nice image for a slide, either tool finishes the job.

Where they part

What Code2Img is not trying to do

It is not a design tool: there is no drag-and-drop canvas, no annotation layer, no free positioning of elements. The card is a card. If your work is a poster with arrows and labels, Code2Img is the wrong instrument and will stay the wrong instrument.

Which to pick

For a single image, on a desktop, right now: whichever tab you already have open — the results are comparable and the difference is taste. For images that come out of a process, need a shareable URL with a preview, or need to be 4× and unbranded, that is the gap Code2Img exists to fill. Try it on a snippet and judge the output rather than this page.

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.