carbon-app /carbon

:black_heart: Create and share beautiful images of your source code

★ 36,139⑂ 1,971👁 242⑃ 866● 697▤ 215◈ 31
JavaScriptMITCreated 2017-06-16carbon.now.sh
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 corr

Top issues

Discussions

Latest release

4.9.10 4.9.10 2022-06-13
carbon: 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

Snapshot: 2026-11-10T09:35:25Z · Data license Apache-2.0 · JSON