Paste and sharing
What is Carbon? An introduction to the web tool for images of source code
Carbon is a web tool for creating and sharing images of source code. You start by typing code or dropping a file into the text area, then adjust how the image looks. Finished images can be tweeted as a link or saved directly.
- Tool
- Carbon
- Made by
- Carbon
- Official site
- carbon.now.sh
- Category
- Paste and sharing
Who makes Carbon
The vendor is listed as Carbon, the same name as the tool. The official website, https://carbon.now.sh, is linked below.
Official website: carbon.now.sh
What Carbon is for
Carbon is for presenting source code as an image rather than as text. The workflow starts in a text area, where you type code or drop in a file. Code can be imported in several ways, and dropping a file into the editor is one of them.
Code can also be loaded from a GitHub gist by appending its id to the URL. That gives a gist a direct path into the editor without copying and pasting its contents.
Who Carbon is for
The vendor states that Carbon is for developers. The tool addresses people who want to show a piece of code in a visual form, for example when sharing it as a link or an image file.
Notable capabilities
Carbon concentrates on getting code into the editor, styling the result and getting the image out. These are the capabilities described for the tool.
- Typing or dropping a file: the text area accepts typed code or a dropped file as the starting point.
- GitHub gist loading: code can be loaded from a gist by appending its id to the URL.
- Syntax themes: the image can be customized by syntax theme.
- Window and layout options: the image can also be customized by background, window theme and padding.
- Image backgrounds: dropping an image file onto the editor sets it as the background.
- Sharing and saving: finished images can be tweeted as a link or saved directly.
- Automatic accessibility on tweets: the Tweet button automatically makes the image accessible.
How Carbon fits paste and sharing
In the paste and sharing category, Carbon differs from text pastebins because its output is an image. Where a pastebin returns a link to text, Carbon produces a styled picture of code, which suits places where a picture is easier to share than a block of text.
That choice has a stated limit. Code in a Carbon image is invisible to assistive technology and cannot be enlarged or copied. Carbon recommends adding the source code as text, such as in an HTML Details Element, below the image.
In Snipspire's wider niche of snippet managers, code paste and developer snippet tools, Carbon covers the presentation side of sharing code. It is not a store for snippets; it is a way to make a snippet look the way you want before it goes out.
Frequently asked questions
What is Carbon used for?
Carbon is used to create and share images of source code. You type or drop code into the text area, customize the image and then tweet it as a link or save it directly.
Who is Carbon for?
The vendor states that Carbon is for developers.
Can Carbon load code from a GitHub gist?
Yes. Code can be loaded from a GitHub gist by appending its id to the URL.
What can I customize in a Carbon image?
Images can be customized by syntax theme, background, window theme and padding. Dropping an image file onto the editor sets it as the background.
Is the code in a Carbon image accessible?
Code in a Carbon image is invisible to assistive technology and cannot be enlarged or copied. Carbon recommends adding the source code as text, such as in an HTML Details Element, below the image.
Snipspire is independent and is not affiliated with Carbon. Product names belong to their owners. Features change; confirm details on the official website.