Carbon embed code generator
Paste any carbon.now.sh URL — get a ready-to-paste iframe of your beautiful source code snippet.
How to embed a carbon snippet
Paste a Carbon link
Copy any carbon.now.sh URL — a shared snippet or an /embed link.
Get the embed code
The tool detects the snippet and generates the right embed HTML.
Copy & paste
Click Copy code, then paste the HTML into your blog, docs, CMS, or any HTML editor.
Why use our carbon embed code generator
No manual setup
Skip building the iframe by hand. Paste any Carbon link and get working embed HTML.
Beautiful code images
Embed the polished, syntax-highlighted code snippet exactly as it looks on carbon.now.sh.
Customizable preview card
Switch to Card mode to customize colors, fonts, and layout before copying.
Free, no signup
Generate up to 50 Carbon embeds per day. No login, no API key, no watermarks.
Carbon Embed with one click.
Powered by the Microlink Embed API — the same infrastructure handling embeds at scale.
Native Carbon embed
Get the real carbon.now.sh embed with the styled, syntax-highlighted snippet when available.
Snippets & gists
Works with saved Carbon snippets and embedded GitHub gists rendered as code images.
Preview card fallback
A styled preview card with title and image when native embedding is restricted.
Native Carbon embed
Get the real carbon.now.sh embed with the styled, syntax-highlighted snippet when available.Snippets & gists
Works with saved Carbon snippets and embedded GitHub gists rendered as code images.Preview card fallback
A styled preview card with title and image when native embedding is restricted.
FAQ
How do I embed a Carbon snippet on my website?
Paste any carbon.now.sh URL into the tool and click Generate. You will get a ready-to-paste iframe of your code snippet.
Can I embed a Carbon snippet or a GitHub gist?
Yes. Saved Carbon snippets and snippets created from a GitHub gist both work via the carbon.now.sh/embed URL.
Is the embedded code selectable?
Carbon embeds render the snippet as a styled code image, so readers see the highlighted code and can copy it from the embed.
What if the snippet cannot be embedded natively?
The tool falls back to a styled preview card with the title and image so you can still share it.
Is this free?
Yes — 50 requests per day, no login, no credit card.