Bitcoin Ordinals

Bitcoin Ordinals is a numbering scheme that gives every satoshi its own serial number so it can be tracked, and that lets people inscribe data such as images or text onto a satoshi, creating NFT-like items and, through BRC-20 and Runes, tokens on Bitcoin.

Bitcoin was not designed to carry pictures or tokens, yet since early 2023 it has carried a great many of them. The trick is a numbering scheme called ordinal theory, plus a way to store data inside Bitcoin transactions called inscriptions. Two token systems, BRC-20 and Runes, were built on top. This page explains how each one works, why they pushed up Bitcoin fees at times, and what to watch before buying anything traded as an ordinal.

Category
Cryptocurrency and Blockchain
Reading time
7 min
Also called
Ordinals, Ordinal theory, Ordinal inscriptions
Updated

Ordinals in plain words

Ordinal theory numbers every Satoshi in the order it was mined and follows it through transactions on a first-in, first-out basis. It needs no separate token, sidechain or change to Bitcoin.1

Once a satoshi has a number, content can be attached to it. An inscription is a file, such as an image or text, written into a Bitcoin transaction and tied to one satoshi, which can then be sent and traded like any other.12 That makes inscriptions Bitcoin's version of an NFT. See ERC-721.

Casey Rodarmor built the `ord` software. Inscribing was switched on for mainnet on 9 January 2023, and he announced on 20 January 2023 that inscriptions were ready, after which a rush of inscriptions began filling blocks.3

How an inscription is created, step by step

Inscribing takes two Bitcoin transactions, because the data can only be revealed when a special kind of output is spent.

  1. Prepare the content

    An inscription is a content type, such as an image or text format, plus the file itself as bytes.2

  2. Wrap it in an envelope

    The data is placed inside an `OP_FALSE OP_IF … OP_ENDIF` block, which never runs, so it does not change what the script does.2

  3. Commit transaction

    The first transaction creates a Taproot output that commits to a script containing the content.2

  4. Reveal transaction

    The second transaction spends that output through the script path, which puts the content on-chain in the witness.2

  5. The satoshi carries it

    The inscription is attached to the first satoshi of the reveal transaction's input and then follows that satoshi as it moves.2

  6. Trade with an ordinal-aware wallet

    Because a normal wallet does not track individual satoshis, it can spend an inscribed satoshi as a fee by mistake. Use software that understands ordinals. See Crypto Wallet.

Worked examples

Example 1 — Why witness data is cheaper

4× cheaper

Under SegWit, weight = base size × 3 + total size, and virtual size = weight ÷ 4, so a witness byte counts as 1 weight unit and a non-witness byte as 4.4 Take a hypothetical 100,000-byte file and a fee rate of 20 sat/vB, ignoring the rest of the transaction.

Example 1 — Why witness data is cheaper — calculation
In witness: weight100,000 × 1 = 100,000 WU
In witness: size100,000 ÷ 4 = 25,000 vB
In witness: fee25,000 × 20 = 500,000 sats
Outside witness: weight100,000 × 4 = 400,000 WU
Outside witness: fee100,000 × 20 = 2,000,000 sats

The witness discount makes the same file about four times cheaper to store, which is why inscriptions use Taproot script-path spends.2 500,000 sats is 0.005 BTC.

Example 2 — The halving block and Runes

92% from fees

The Runes protocol switched on at block 840,000.5 That block, mined on 20 April 2024, paid 40.75061499 BTC in total, of which 37.62561499 BTC were fees.6

Example 2 — The halving block and Runes — calculation
Total reward40.75061499 BTC
Fees37.62561499 BTC
Subsidy40.75061499 − 37.62561499 = 3.125 BTC
Fee share37.6256 ÷ 40.7506 ≈ 92.3%

The subsidy left over is 3.125 BTC, the post-halving amount, so fees in that one block were worth about twelve times the new coins. Fee spikes like this tend to be brief. See Bitcoin Halving.

Example 3 — When short rune names unlock

Block 1,032,500

Rune names are 1 to 26 letters long.7 At block 840,000 names of 13 letters or more were open, and every 17,500 blocks the next shorter length unlocks, starting with 12 letters.5

Example 3 — When short rune names unlock — calculation
Lengths to unlock12 steps (12 letters to 1)
Last step starts840,000 + 11 × 17,500
Block840,000 + 192,500 = 1,032,500

One-letter rune names only start to unlock at block 1,032,500, matching the specification.5 Scarcity rules like this are design choices, not proof that a name has value.

Inscriptions vs. BRC-20 vs. Runes

AspectInscriptionsBRC-20Runes
What it createsUnique items tied to one satoshi1Fungible tokens written as JSON inscriptions8Fungible tokens7
Where data sitsTaproot witness (script path)2Inscriptions in the witness8An `OP_RETURN` output (runestone)7
Balances tracked byOrdinal-aware indexerOff-chain indexer8Runes-aware indexer
StartedMainnet, January 202339 March 2023, by domo8Block 840,000 (April 2024)5

Why people use Ordinals

  • Collectibles on Bitcoin

    Inscriptions put images, text and other files directly on the Bitcoin blockchain.1

  • Rare satoshis

    Collectors value satoshis by rarity: the first of each block is uncommon, of each difficulty period rare, and of each halving epoch epic.1

  • Tokens without a new chain

    BRC-20 and Runes create fungible tokens that settle on Bitcoin itself.87 See Coin vs Token.

  • Reading fee pressure

    Inscription and token waves compete for block space, so traders watch the Mempool for fee spikes.

Advantages and disadvantages

Advantages

  • Content lives on the Bitcoin blockchain, not on an outside server.
  • No change to Bitcoin's rules was needed.
  • Inscriptions move with ordinary Bitcoin transactions.
  • Runes keep token data compact in a single output.

Disadvantages

  • Waves of inscriptions can push up fees for everyone.
  • Balances depend on indexer software, not Bitcoin nodes.
  • Ordinary wallets can accidentally spend an inscribed satoshi.
  • Many collections and tokens are illiquid and speculative.

Going deeper

Read as far as you need. Each level builds on the one before it.

Numbers, rarity and inscriptions

Beginner

Each satoshi gets a number from the order it was mined. Rarity names follow Bitcoin's own cycles: common, uncommon (first of a block), rare (first of a 2,016-block difficulty period), epic (first of a 210,000-block halving epoch), legendary (first of each roughly 24-year cycle) and mythic (the very first satoshi of the genesis block).1

Tokens: BRC-20 and Runes

Intermediate

BRC-20, launched on 9 March 2023 by a pseudonymous developer called domo, uses inscriptions containing short JSON texts to deploy, mint and transfer tokens. Bitcoin nodes do not track the balances; an off-chain indexer reads the inscriptions and works them out.8 Its creator called it a fun experiment, not the standard for fungible tokens on Bitcoin.8

Runes take a different route. A rune message, or runestone, sits in an output that starts with `OP_RETURN` and `OP_13`, and at most one is allowed per transaction.7 Etching sets a rune's name, divisibility, symbol, optional premine and optional open-mint terms, and those settings cannot change afterwards.7

The block-space debate

Advanced

In February 2023, as users began storing large amounts of data in Taproot witness data, a developer asked whether a size limit should discourage it. Andrew Poelstra answered that there is no effective way to prevent data storage and that restrictions would mostly push the data elsewhere.9

The argument over Ordinals and inscriptions ran for the rest of 2023, and it fed proposals to raise Bitcoin Core's 83-byte default limit for data in `OP_RETURN` outputs.10 Inscription data is limited to 520 bytes per data push, so larger files are split across many pushes.2

Common mistakes

  1. Using a wallet that does not track ordinals

    A normal wallet may spend the inscribed satoshi as part of a fee or payment, and the item is then gone.

  2. Assuming an inscription number means value

    Low numbers and rare sats are labels from the protocol. Prices depend on buyers, and many items never trade again.

  3. Ignoring the indexer

    BRC-20 and Runes balances come from indexer software. If indexers disagree or have bugs, what you see can differ between platforms.

  4. Minting during a fee spike

    Launch days can push fee rates very high, and paying a large fee to mint does not guarantee the token will be worth it.

Check your understanding

Test yourself before moving on. Each answer comes with an explanation.

Q1Where does an inscription's content live on-chain?
Q2Under SegWit, how many weight units does one witness byte count as?

Key points to remember

  1. Ordinal theory gives every satoshi a number based on mining order and tracks it first-in, first-out.
  2. Inscriptions store files in Taproot witness data and tie them to one satoshi.
  3. BRC-20 (March 2023) and Runes (block 840,000, April 2024) build fungible tokens on top.
  4. Balances depend on indexers, and ordinary wallets can lose inscribed satoshis.
  5. Inscription and token waves can push Bitcoin fees sharply higher for a time.

Frequently asked questions

Are Bitcoin Ordinals NFTs?

In practice, yes. An inscription is a unique piece of content bound to one satoshi that can be owned and traded, much like an NFT, but it lives on Bitcoin rather than in a smart contract.1

Did Ordinals require a change to Bitcoin?

No. Ordinal theory works with Bitcoin as it is, and inscriptions use the Taproot script path that already existed.12

What is the difference between BRC-20 and Runes?

BRC-20 writes token actions as JSON inscriptions that an indexer interprets.8 Runes store compact messages in an `OP_RETURN` output and became active at block 840,000.75

Further learning

  • Bitcoin (BTC)

    The network that Ordinals is built on.

  • ERC-721

    How NFTs work on Ethereum, for comparison.

  • Mempool

    Where transactions wait and fee rates are set.

  • Bitcoin Halving

    The event Runes chose for its launch block.

Sources

This article is written in our own words. The sources below support the specific facts, rules and figures marked with a number in the text. Links open the original publisher’s page.

  1. Ordinal Theory Handbook (docs.ordinals.com). Ordinal Theory Overview (opens in a new tab) Checked .
  2. Ordinal Theory Handbook (docs.ordinals.com). Inscriptions (opens in a new tab) Checked .
  3. Casey Rodarmor. How Ordinals Came to Be (5 September 2024) (opens in a new tab) Checked .
  4. Bitcoin Improvement Proposals. BIP 141: Segregated Witness (Consensus layer) (opens in a new tab) Checked .
  5. Ordinal Theory Handbook (docs.ordinals.com). Runes Specification (opens in a new tab) Checked .
  6. mempool.space. Bitcoin block 840,000 (20 April 2024) (opens in a new tab) Checked .
  7. Ordinal Theory Handbook (docs.ordinals.com). Runes (opens in a new tab) Checked .
  8. Chainlink Education Hub. What Is a BRC-20 Token? (opens in a new tab) Checked .
  9. Bitcoin Optech. Bitcoin Optech Newsletter #237 (8 February 2023) (opens in a new tab) Checked .
  10. Bitcoin Optech. Bitcoin Optech Newsletter #282: 2023 Year-in-Review Special (20 December 2023) (opens in a new tab) Checked .

Educational content, not financial advice. Examples use hypothetical prices and simplified costs; actual fees, margin rules and regulations vary by broker, market and country. We are not affiliated with any publisher linked above. Last reviewed . Report an error or request a source credit.