Code2Img

One price, no tiers.

The editor is free and stays free. Pro is 3 € a month — or 29 € a year — and changes four things: the watermark, the export scale, your own branding, and the API quota.

The same card, three ways.

Free exports this card at up to 2× with a small watermark; Pro removes the watermark and goes to 4×. Everything else — themes, fonts, backgrounds, share links — is in both plans.

Pick a plan.

Free

0 € forever
Open the editor
  • PNG, JPG and PDF export up to 2×
  • 18 themes, 7 code fonts, every language Shiki knows
  • Public share links with an OG image
  • 10 saved presets
  • API: 30 requests a minute, 500 a day
  • Watermarked with code2img.app

Pro

3 € per month
29 € per year, billed once
Get Pro
  • Export at 4× with no watermark
  • Your own logo and background images
  • Unlimited saved presets
  • API: 300 requests a minute, 5.000 a day
  • Every theme and font, for future themes too

What changes between the two.

FreePro
Export formatsPNG, JPG, PDF, WebMPNG, JPG, PDF, WebM, MP4
Export scaleup to 2×up to 4×
Watermarkcode2img.appnone
Themes and fontsallall
Backgroundsgradients, mesh, patterns, solid+ your own image
Logo in the card cornernoyes
Saved presets10unlimited
Share links with OG imageyesyes
REST API30 a minute, 500 a day300 a minute, 5.000 a day
MCP server (remote and stdio)yesyes

Questions about paying.

How do I turn code into an image?

Paste the snippet into the editor, choose a theme and a font, then export. You get a PNG, JPG or PDF that keeps the padding, radius, background and window chrome you set. The same three steps run over HTTP: POST the config to /api/v1/images and read the bytes back.

What can I export?

PNG, JPG and PDF. The Free plan exports up to 2× the layout size, Pro up to 4× — enough for a retina screen or a 4K slide. Every export keeps the exact padding, radius, background and window chrome you set in the editor.

Do I need an account?

No. The editor works without signing in: paste code, export, or copy a share link. An account keeps your presets, your export history and your API keys, and Pro removes the watermark.

How does the share link work?

Each share creates a public page at https://code2img.app/i/<slug> with the image, an Open Graph preview for X, LinkedIn and Farcaster, and a share bar. You can set an expiry and delete the link at any time.

Is there an API?

Yes — https://code2img.app/api/v1, with API keys, per-key scopes, quotas and signed image URLs. The OpenAPI spec is served at /api/v1/openapi.json and a TypeScript SDK covers the same endpoints. Free keys get 30 requests a minute and 500 a day; Pro keys 300 and 5.000.

Can my AI agent render images?

Yes. There is a remote MCP server at https://code2img.app/mcp (Streamable HTTP, authenticated with your API key) and a stdio package for Claude Code, Cursor and other local clients. Both call the same public API, so quotas and the watermark are applied once, in the same place.

Can I put my own logo or background on the card?

On Pro: upload a PNG, JPG or WebP as the background, and a logo that sits in the card's corner. Free cards keep the Code2Img watermark and the built-in gradient, mesh and pattern backgrounds.

What happens when I cancel?

Pro stays active until the end of the period you paid for, then the account drops back to Free: the watermark returns, exports cap at 2× and presets above 10 stop syncing. Nothing is deleted, and your API keys keep working within the Free quotas.