Turn code into images
Pick a theme, a gradient background, line numbers, and a window frame, then export a PNG or share a link. A Ray.so and Carbon alternative.
What you get
14 syntax themes
Midnight, Sunset, Candy, and more. Auto-detects your language or pick from 20 languages manually.
Gradients, images & patterns
Every theme ships its own gradient, or pick from dozens of gradients, image backgrounds, and patterns, or turn the background off for a transparent PNG.
Line numbers & window frame
Toggle line numbers, a macOS-style title bar or none at all, and resize the frame to fit your code.
Shareable links & 2x/4x export
Every setting is saved to the URL, so you can share a link or export a 2x or 4x PNG.
How it works
- 1
Paste or type your code
Drop in a snippet or start typing directly in the code card. Formatting and indentation are preserved.
- 2
Pick a theme and background
Choose a syntax theme, a gradient, padding, and whether to show line numbers or a window frame.
- 3
Export or share
Download a 2x PNG, copy the image to your clipboard, or copy a link that reopens your exact design.
How it compares
Carbon and Ray.so are established code screenshot tools with more syntax themes. Shots matches the core workflow and adds gradient backgrounds, a transparent export, and a full screenshot and mockup editor for everything else.
Is Shots a good Carbon alternative?
Yes, for most uses. Shots makes code images with 14 syntax themes, line numbers, a macOS title bar, gradient and image backgrounds, and transparent export. Carbon has more themes (29) and SVG export. Shots' main editor adds browser mockups, 3D transforms, animations, and video export. Carbon is free; Shots plans start at $199/mo and include launch features.
Full Carbon comparisonIs Shots a good Ray.so alternative?
Yes. Shots produces clean code images with 14 themes, gradient, image, and pattern backgrounds, and transparent export, and its main editor adds browser mockups, 3D perspective, animations, and video export. It is open source and included in every Shots plan.
Full Ray.so comparisonCompetitor pricing and features checked on September 20, 2026. See each comparison for sourcing, since third-party plans change without notice.
Comparing more options? Best code to image tools
Frequently asked questions
Related features
Compare details in the Carbon comparison or the Ray.so comparison, try the code editor, or browse every image tool.