SVG Inscriptions on Bitcoin: Why Artists Love Them
SVG (Scalable Vector Graphics) has become the darling format of the Bitcoin Ordinals art world. With file sizes measured in bytes rather than kilobytes, perfect rendering at any resolution, and the ability to include interactivity and animation, SVG inscriptions represent some of the most technically impressive and cost-efficient art on the blockchain.
What Makes SVG Special for Ordinals
SVG is a markup language for describing two-dimensional graphics. Unlike raster formats (PNG, JPEG) that store pixel data, SVG describes shapes, paths, and colors mathematically. This fundamental difference creates several advantages for on-chain art.
SVG (Vector)
A circle inscribed as SVG might be just 100 bytes. Scales to any size. The code IS the art — human-readable and editable.
PNG (Raster)
The same circle as PNG could be 5-50KB depending on resolution. Fixed pixel grid. Pixelates when scaled up.
Tiny File Sizes
The most compelling reason artists choose SVG is file size. A complex geometric artwork that would require 50-200KB as a PNG can be expressed in 500 bytes to 5KB as SVG. This translates directly to dramatically lower inscription fees. Some SVG inscriptions cost less than $0.50 to inscribe, even during periods of high network activity.
Perfect Scaling at Any Resolution
SVG inscriptions render crisply on a phone screen, a 4K monitor, or a billboard. Since the graphics are described mathematically, there are no pixels to blur or distort. This future-proofs your art — as display technology improves, your SVG ordinal will always look sharp.
On-Chain Forever
Every ordinal inscription is permanent, but SVG's small size means your complex artwork occupies minimal block space while remaining fully self-contained. The entire visual description lives on Bitcoin with no external dependencies.
Interactive SVG Inscriptions
One of SVG's most powerful features is its support for interactivity and animation — all within the file itself, requiring no external code.
CSS Animations in SVG
SVG supports embedded CSS, enabling animations like rotation, color transitions, morphing shapes, and complex motion paths. An animated SVG inscription can contain dozens of moving elements while still being under 10KB.
HTML + SVG Combo Inscriptions
Some of the most groundbreaking ordinal inscriptions combine HTML and SVG. By inscribing an HTML file that contains SVG elements, artists can add JavaScript-driven interactivity — hover effects, click responses, generative elements, and even audio.
<!-- Example: Interactive SVG Ordinal -->
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400">
<style>
circle { transition: fill 0.3s; }
circle:hover { fill: #F7931A; filter: drop-shadow(0 0 12px #F7931A); }
</style>
<circle cx="200" cy="200" r="80" fill="#333"/>
<text x="200" y="210" text-anchor="middle" fill="#fff"
font-size="24" font-weight="bold">Hover Me</text>
</svg>
Recursive SVG: Referencing Other Inscriptions
Recursive inscriptions — where one inscription references another — unlock incredible possibilities for SVG art on Bitcoin.
How It Works
A recursive SVG inscription can load and display content from other inscriptions using the /content/<inscription_id> path. This means you can build complex compositions from simple on-chain components:
- Shared backgrounds: Inscribe a background pattern once, reference it from hundreds of artworks
- Modular collections: Inscribe individual traits (hats, eyes, bodies) as separate SVGs, then combine them in new inscriptions
- Layered art: Build depth by stacking referenced SVG layers
- Shared libraries: Reference inscribed CSS or animation code across multiple artworks
Examples of Groundbreaking SVG Ordinals
The SVG Ordinals space has produced some remarkable artistic and technical achievements:
- Generative geometric art: Algorithmically generated patterns expressed in pure SVG, each unique and under 2KB
- On-chain clocks: SVG inscriptions that display the current time using CSS animations, functioning as perpetual on-chain timepieces
- Interactive puzzles: CSS-only interactive inscriptions where viewers can click and manipulate elements
- Data visualizations: SVG charts and graphs that visualize Bitcoin blockchain data
- Animated landscapes: Detailed scenic artwork with parallax scrolling effects, all in under 5KB
How to Optimize SVG for Inscribing
Minimize Your SVG Code
- Use SVGO: Run your SVG through SVGO to strip unnecessary metadata, comments, and redundant attributes
- Remove editor junk: Figma, Illustrator, and Inkscape all add proprietary metadata — strip it all
- Simplify paths: Reduce the number of points in complex paths. Most viewers won't notice minor simplifications
- Use shorthand:
fill="#fff"instead offill="#ffffff",opacity=".5"instead ofopacity="0.5" - Reuse with <use>: Define shapes once with
<defs>and reference them with<use>to avoid duplication - Combine paths: Merge multiple shapes into a single path element where possible
SVG Optimization Checklist
- Run through SVGO with default settings
- Remove all metadata and comments
- Reduce decimal precision to 1-2 places
- Convert shapes to paths where it saves bytes
- Use CSS classes instead of inline styles for repeated styling
- Remove the XML declaration (not needed when served as image/svg+xml)
- Test rendering after optimization to ensure visual fidelity
View SVG Art in Our Gallery
Discover stunning SVG ordinal inscriptions created by the community
Browse ordinals.pics