carbon-app /carbon
:black_heart: Create and share beautiful images of your source code
★ 36,139⑂ 1,971👁 242⑃ 866● 697▤ 215◈ 31
36,139
stars
+1+14+33
1,971
forks
242
watchers
866
prs
697
issues
215
releases
31
discussions
README
Translations
Español
हिंदी
Deutsch
简体中文
Português
മലയാളം
Türkçe
한국어
தமிழ்
Français
日本語
Svenska
Polski
Nederlands
正體中文
Indonesia
Українська
Italiano
עברית
Русский
العربية
বাংলা
فارسی
Add +
Introduction
You know all of those code screenshots you see on Twitter? Though the code's usually impressive, we saw room for improvement in the aesthetic department. Carbon makes it easy to create and share beautiful images of your source code. So what are you waiting for? Go impress all of your followers with your newfound design prowess.
Features
- Customization. Customize things like your image's syntax theme, font style, and more
- Share quickly. Save your image or
a link with one click
- Save snippets. Create an account to save snippets for later. Shared snippets are automatically unfurled on Twitter and Slack.
Usage
Import
There are a few different ways to import code into Carbon:
- Drop a file onto the editor
- Append a GitHub gist ID to the URL (e.g. carbon.now.sh/)
- Or just start typing!
Customization
Once you've got all of your code into Carbon, you can customize your image by changing the syntax theme, background color, window theme, padding, shadows, fonts, and more.
Exporting & Sharing
After you've customized your image you can share your snippet in a number of ways
Create a saved snippet
Sharing a saved snippet will automatically unfurl the image on platforms like Twitter and Slack. This lets users see your creation, while also giving them access to the source code via the link. Better yet, if you need to make an update, simply follow the link yourself to edit the snippet directly.
To create a saved snippet:
1. Login using the "Sign in/Sign up" button
2. Edit as you normally would — your snippet will get saved automatically
3. Copy the URL from your browser window and share away!
Embed a snippet
This is the recommended method for sharing Carbon on your own website or blog. Readers can even copy the code with the click of a button.
You can embed any Carbon snippet in your website directly using the carbon.now.sh/embed URL. The "Copy Menu" lets you quickly copy the correct iFrame snippet, or the encoded URL for embedding on platforms like Medium.
Finally, you can also embed saved snippets or GitHub gists using carbon.now.sh/embed/:id.
Use the Tweet button
The Tweet button will not only share the image on Twitter, but it will also corrTop issues
#743Broken image (overlay lines)24 comments · 2019-04-24#1357[BUG] `x` pre9 comments · 2022-03-28#1287Web app is unusable on mobile9 comments · 2021-11-30#1577Support for IntelliJ themes6 comments · 2025-06-21#1573License Scan Failing - Investigate and Resolve License Compliance Errors5 comments · 2025-04-06#1493Save not updating existing snippets5 comments · 2023-09-03#1389Help wanted: Codemirror sometimes temporarily shows incorrect editors4 comments · 2022-06-13#1606Code lines overlap/merge together upon image generation3 comments · 2026-06-13
Discussions
#1566Support for Patch Files?0 comments · 2025-01-11#1556Allowing editor transparency to be set0 comments · 2024-10-04#1555Allow to specify tab size1 comments · 2024-09-05#1535Where does tokenization and analysis occur?1 comments · 2024-08-23#1492Question about custom font0 comments · 2023-08-29#1562Markdown support with option to remove markdown characters0 comments · 2023-08-27#1557Auto-paste from Clipboard0 comments · 2023-07-25#1480SVG possability to select text0 comments · 2023-07-10
Latest release
4.9.10 4.9.10 2022-06-13carbon: https://carbon-bjm5zzhrt-carbon-app.vercel.app Patches - Fix solidity: 7bf1aca8972b4f86a4a3dc9c1bd0c7f0dd1e61b2 - Move onMouseUp to component handler: 33cc091e7b91aef1011cf90d278a340037bcc04f - Confirm width state on mouse up: bd8cb2a66eca6c09ca687e79aa66af4ed76285fa - Pass in this child as a prop to Carbon: 8a8edcfef8ce254805ba68d31bdc8c55fdb92e34 - Extract widthhandler as prop: c61da03d86d4814ff2d8592fb8c917348fc23c0f - Refactor widthhandler a bit: 3f6b14de9bddfff6af460a4ff398a29e63d0813f - Bugfix width handler: 4f4a3837ce6a442571c1f14259228fd27891b35f - Create title b