Codeshots

Paste a snippet. Get one worth posting.

Codeshots runs your code through the formatter its own community uses, colours it with the engine inside VS Code, and draws a real editor around it. What comes out is a vector.

Open the studioFree. No account.

Got a screenshot rather than code? Paste that instead. Every background, shadow, frame and device here works on any picture.

242 languages · 13 formatters · 6 editors · screenshots · PNG and SVG

Start with the code

Paste it, or type straight onto the picture. The formatter its own community uses runs here, in your browser.

It becomes a window

Traffic lights, a tab strip with real file icons, a gutter. Every part optional, every colour from the theme.

Then a whole editor

Explorer, breadcrumbs, a minimap drawn from your own tokens, a status bar on your branch. Or any of six editors.

And then it is an export

On a generated canvas, as vector. Sharp at any size, and the words inside it are still real text.

Now do it yourself

Four steps, each one the real operation. By the end you are holding an actual export rather than having watched a tour of one.

Got a screenshot rather than code? Paste that instead. Every canvas, shadow, frame and device here works on any picture, not only on code.

Languages
242 grammars
Themes
65, plus your own
Formatters
13 real ones
Editors
6, drawn properly
Screenshots
Paste or drop any image
Export
PNG, WebP, JPEG, SVG
  1. Step 1 of 4: Format it, current
  2. Step 2 of 4: Choose how it reads
  3. Step 3 of 4: Decide how much editor
  4. Step 4 of 4: Take it with you

Step 1 of 4

Format it

This came out of a bundle on one line. Prettier runs here, in this tab, and reprints it properly.

or type straight onto it

It formats before it draws

Other tools photograph whatever you paste. If it arrived minified, that is what your audience sees. Codeshots reaches for the formatter the language actually uses: the real tool, compiled to WebAssembly, run here.

  • Prettier
  • Prettier (PHP)
  • Prettier (XML)
  • Prettier (Java)
  • sql-formatter
  • Ruff
  • gofmt
  • clang-format
  • StyLua
  • zig fmt
  • Taplo
  • dart format
  • rustfmt

A language with no formatter that parses it is marked highlight only and left exactly as pasted. Guessing at indentation would put something wrong in front of your readers.

retry.jsScroll, and the paste resolves into what Prettier actually returns for it.

Six editors, and they differ where editors actually differ

Not six tab shapes. Xcode has no tab bar and no icon rail: a navigator row sits across the top of its panel and a jump bar names the file. Neovim counts lines from the cursor, fills the rest of the buffer with tildes and puts the mode in its statusline. Each one was checked against its own interface.

VS Code

Activity rail, EXPLORER, accent above the active tab.

JetBrains

A navigation bar, and a tree root that shows its path.

Xcode

No rail, no tabs. A navigator row and a jump bar.

Zed

No rail. Plain text tabs over the file's path.

Sublime Text

FOLDERS, no file icons, the minimap always on.

Neovim

Relative numbers, tildes, a powerline statusline.

Mark the line you are arguing about

Click the gutter to focus a line and everything else dims, or mark one added, removed or warned. Two panes side by side, each with a caption, make a before and an after one picture instead of two that somebody has to staple together in their head.

This is the difference between a picture of some code and a picture of the point you are making.

Before and after

Two panes, two captions, the removed lines marked in one and the added lines in the other.

One line focused

The rest dims. A warned line keeps its mark, so the caveat travels with the claim.

Canvases, generated

Every background is vector art made in the browser, so a 6× export has no pixels to run out of. Apple owns its wallpapers, so these are drawn from scratch in the same spirit. Bring your own if you prefer; the file is read in your tab and never uploaded.

A screenshot gets the same treatment

Paste or drop any image and it becomes the subject. Every canvas, shadow, frame, lean and device here works on it, because none of them ever asked what was inside the window.

Crop it, trim its edges, turn it, stretch it to the shape of the screen it is going into. Mark it up with boxes, arrows and labels, which stay vector in the export and stay movable afterwards.

Redaction is the one thing that is not reversible, deliberately. It destroys those pixels rather than covering them, because a black rectangle drawn over an image leaves the image underneath it in the file.

Marked up

A box, an arrow and a label, on a display with a reflection under it.

Beside your code

A pane can hold a picture, so the command and what it printed are one image.

The export is a vector

There is no screenshot step anywhere in this product. The picture is built as SVG from the start, so the words in it are real text: it scales to any size without softening, opens in Figma as editable type, and a 6× PNG has no pixels to run out of.

It is also why the preview and the download can never disagree here. They are the same file.

On a laptop

A shell ported from devices.css, in five finishes, with a reflection under it.

Terminal panes

Half of what developers post is output, not source. Stack a shell session under the code.

When you should not post an image at all

An image of code cannot be copied, searched, translated or read aloud by a screen reader. In a README, a blog post or documentation you control, a plain text code block beats anything on this page, and you should use one.

Where an image genuinely is the right answer, such as a feed, a slide or a message to somebody without your repo, Codeshots also gives you an embed. Same picture, but the code inside stays real text with a copy button.

Paste a snippet and see.

No account, no upload, nothing stored. A shared link carries the whole snippet inside itself.

Open the studio