Skip to content
Open the editor
New: code animations

Beautify your code screenshots. And now, animate them.

Paste a snippet. Pick a theme, mark the lines that matter, and export an image or a video at the size X, LinkedIn and your README expect.

Free and open source. No account needed.

Morphs the snippet to a second step with one added line, then backAuto · fits the windowOpen in the editor
Theme
Background
Window
Size
New

Explain a change in motion.

Each tab is a step. CodeImage works out what stayed, what went and what is new, and moves each piece of code to its place.

A scroll scene in four parts. Three tabs of the same getUser function become three steps. Code that two steps share slides to its new place, removed code fades out and new code fades in. The second step marks one line as removed and one as added. The third step adds a return type and focuses that line, so the rest dims. Beside the frame, the Animate panel lists the tabs with how long each one holds, and the transitions with their duration and easing. The frame then becomes an MP4 for social and a GIF for a README.

  1. Each tab is a step. Set how long each one holds.
  2. Code that both steps keep slides to its new position. Removed code fades out. New code fades in.
  3. Marks travel with the steps. Each transition has its own duration and easing.
  4. MP4 for social, GIF for a README, from the browser, with a file size estimate before you export.
1 · Steps

Each tab is a step. Set how long each one holds.

2 · Diff

Code that both steps keep slides to its new position. Removed code fades out. New code fades in.

3 · Focus

Marks travel with the steps. Each transition has its own duration and easing.

4 · Export

MP4 for social, GIF for a README, from the browser, with a file size estimate before you export.

Animate a snippet

Two files, one animation.pnpm dlx @codeimage-app/cli before.ts after.ts --animate -o change.gifnpx @codeimage-app/cli before.ts after.ts --animate -o change.gif

For agents

Ready for agents, with WebMCP and skills.

Ask your coding agent for an image or a video of the change it just made. With the skill it runs the CLI, and in Chrome it can drive the web editor.

New
You

/codeimage make an image of the fix I just made, in Dracula, sized for X.

Agentskill + CLI
fix.png1600 × 900136 ms

Tools in the editor.

The web editor registers its tools with the browser’s agent through WebMCP, a W3C draft that Chrome is previewing.

A CLI built for scripts.

Paths on stdout, progress on stderr, exit codes 0, 1 or 2. --offline disables all network access, and secrets are redacted by default.

Read the CLI docs

Make it look like yours.

New

Three windows.

Card, Editor or Terminal. The new Accent wash surface and Hairline border take their colour from the theme.

Window
Surface
Border

30 editor themes.

Hover a theme to preview it. The one you pick also colours the window.

DraculaDark
  • 30 languages.

    TypeScript, Python, Rust, Go, SQL and 25 more.

  • Several files in one image.

    Tabs, as in your editor.

  • Presets.

    Save a look and apply it to the next snippet.

  • Your snippets, saved.

    Sign in to keep projects and open them from any device.

Annotate and share.

New

Point at the line that matters.

Mark lines as added or removed, highlight them, or focus on them so the rest of the snippet dims. Paste a unified diff or Shiki annotations and the marks come with the code.

Click a line to mark it added or removed
New

Alt text, already written.

One button copies the language, file name, line range and the code itself.

ALTsnippet.tsx
TypeScript code, snippet.tsx, lines 1 to 14import {createSignal} from 'solid-js';

export function Snippet(props: {code: string}) {
  const [copied, setCopied] = createSignal(false);
  const copy = () => navigator.clipboard
    .writeText(props.code)
    .then(() => setCopied(true));

  return (
    <button onClick={copy}>
      {copied() ? 'Copied' : 'Copy code'}
    </button>
  );
}
New

Sized for the feed.

Pick X, LinkedIn, Square or Open Graph. The whole window is fitted inside that exact size, so nothing is cropped when you post.

X landscape1600 × 900
LinkedIn portrait1080 × 1350
Square1080 × 1080
Open Graph1200 × 630
New

Sign your work.

Put your handle on the image as Minimal, Pill or Card. It is saved with your presets.

  • Minimal
  • Pill
  • Card
New

Secrets check.

API keys and tokens are flagged before you export, and redacted in one click.

2 possible secrets visible
New

Sidebar or Dock.

Two editor layouts, and for every action.

Layout
Experimental

One renderer, in the browser and in your agent.

2.0 adds Takumi (opens in a new tab), a new export engine. The same engine draws the image in the web app and in the CLI, so a preset gives the same picture in both places.

PNG
SVG
The line return res.json(); twice. Once as pixels, as in a PNG. Once as vector outlines, as in the SVG export. Beside each line, the letter o magnified: a staircase of pixels, and a smooth outline with its anchor points and handles.
  • PNG, JPEG, WebP or SVG.

    Or copy the image straight to the clipboard.

  • SVG with real outlines.

    Text is exported as vector paths, so the file opens in Figma, Illustrator or Keynote with no missing fonts and scales to any size.

  • A safety net.

    If Takumi cannot draw a snippet, the classic export takes over.

  • PNG
  • JPEG
  • WebP
  • SVG
  • Clipboard
Takumi (opens in a new tab)Web appCLI
New

The same image, from your terminal.

codeimage renders in Node 24 with no browser, using the presets you saved in the web app. Secrets are redacted by default.

  1. A file to an image.
    pnpm dlx @codeimage-app/cli src/example.ts -o example.png
  2. Your diff, marked.
    git diff | pnpm dlx @codeimage-app/cli --diff -o changes.png
  3. Focus and highlight.
    pnpm dlx @codeimage-app/cli src/example.ts --focus 3-5 --highlight 4 -o focused.png
  4. Sized and signed for X.
    pnpm dlx @codeimage-app/cli src/example.ts --size x-landscape --signature @you -o social.png
  5. Two files, one animation.
    pnpm dlx @codeimage-app/cli before.ts after.ts --animate -o change.gif

Use it in CI, docs builds and scripts.

social.png1600 × 900PNG

Questions.

Yes. CodeImage is MIT licensed and free to use.

No. You can edit and export without one. An account only adds saved snippets.

PNG, JPEG, WebP and SVG images, and GIF or MP4 animations.

The codeimage command renders the same images and videos in Node, for CI, docs builds and coding agents. Run it with pnpm dlx @codeimage-app/cli, or give your agent the skill with pnpm dlx skills add riccardoperra/codeimage.

For developers

The editor’s UI kit is yours too.Beta

CodeUI is the component library CodeImage is built on, now open source and in beta. @codeui/solid has the components for Solid 2. @codeui/styles is the same design as plain CSS, for any framework. Expect changes before 1.0.

  • @codeui/solidBetaSolid 2
  • @codeui/stylesBetaPlain CSS
pnpm add @codeui/solid
  1. Button
  2. Segmented control
  3. Text field
  4. Select
  5. Checkbox
  6. Switch
  7. Kbd
  8. Tooltip
  9. Tabs
  10. Badge

This page is styled with @codeui/styles.

CodeUI on GitHub
Button
Segmented control
Text field
Font
Select
Checkbox
Switch
⌘K
Kbd
Tooltip

Background, padding and size.

Tabs
NewBetaAddedRemoved
Badge

Built in the open since 2022.

MIT licensed. Fix a bug, add a theme, or propose a feature.

Your next snippet is one paste away.

Free and open source. No account needed.