# Carbon

Turns a pasted code snippet or GitHub gist into a styled image, with themes, fonts and window frames, exported as PNG or SVG or embedded as an iframe.

- Category: Developer utilities · by Mike Fix, Brian Dennis and Jake Dexheimer (carbon-app)
- Website: https://carbon.now.sh/
- Live data: no
- Checked on the official pages: 2026-10-23

## API

- No official API. Do not scrape the site; use it by hand or through its downloads.

## Data and license

- License: MIT (code); site terms for the hosted service (https://github.com/carbon-app/carbon/blob/main/LICENSE); covers MIT covers the Carbon source code; the hosted terms (Notion page) could not be read, so commercial use of generated images is not confirmed
- Commercial use unclear
- Credit: not stated
- Can be embedded
- Quote (license_code): "MIT License" (https://github.com/carbon-app/carbon)
- Quote (embed): "You can embed any Carbon snippet in your website directly using the `carbon.now.sh/embed` URL." (https://github.com/carbon-app/carbon)
- Quote (embed_saved): "Finally, you can also embed saved snippets or GitHub gists using `carbon.now.sh/embed/:id`." (https://github.com/carbon-app/carbon)
- Quote (export): "Carbon supports downloading your image as a PNG and SVG." (https://github.com/carbon-app/carbon)
- Quote (gist_import): "Append a GitHub gist ID to the URL (e.g. [`carbon.now.sh/<gist_id_goes_here>`]" (https://github.com/carbon-app/carbon)
- Quote (accessibility): "If you include a Carbon image in a post, the source code will be invisible to assistive technology." (https://carbon.now.sh/about)

## Rules for an agent

- No API and no official npm package (the carbon-now CLI is a community project); it is open source (MIT, github.com/carbon-app/carbon, Next.js) so you can self-host; for links use carbon.now.sh/<gist_id> to open a gist and carbon.now.sh/embed/<id> for an iframe, and always publish the code as text next to the image.
- Include the code as text next to any Carbon image; the image is invisible to screen readers
- Keep the MIT notice if you fork or bundle the code

Human page: https://agentgid.com/resources/carbon/
Source: AgentGid (agentgid.com). Facts are quoted from the site's own pages; check the license page before you ship.
