// Blockchain, explained

A visual walkthrough

How blockchain works

No coins, no hype — just the mechanism. A blockchain is a record that thousands of computers keep an identical copy of, structured so that changing any past entry is instantly detectable. This page builds that idea piece by piece, and lets you poke each piece yourself.

~8 min read 2 playable demos + quiz No prior crypto knowledge needed
01 · The core idea

A shared ledger nobody can quietly rewrite

Picture a notebook listing every transaction. Now give an identical copy of that notebook to thousands of people, and add one rule: each new page is sealed with a fingerprint of the page before it. To fake an old entry you would have to re-seal every page after it, on a majority of those copies, faster than everyone else writes the next page. That is, in one sentence, why a blockchain is hard to tamper with.

Everything else on this page is detail underneath that idea. The three moving parts:

A fingerprint (hash)

A short code computed from data. Change one character and the code changes completely.

A chain

Each block stores the previous block's fingerprint, linking them in order.

Many copies + a rule

Thousands hold the same chain and only accept new blocks that follow the rules.

Block #4203 — entries
AnaBen2.0
BenCris0.5
DevAna1.2
copy A
copy B
copy C
…×9k
02 · The fingerprint

Hashing: any input, one fixed code

A hash function takes any text and returns a fixed-length code. The same input always gives the same code; the tiniest change gives a wildly different one. That sensitivity is what lets a blockchain notice tampering — a single edited character breaks the fingerprint.

Demo 1Type and watch the hash

Edit the text below. The fingerprint underneath recomputes on every keystroke. Try changing a single letter, or just its capitalization.

same input → same hash, always
Go deeper: is this a real hash?
This demo uses a small, fast hash for illustration so it runs instantly in your browser. Real blockchains use cryptographic hashes like SHA-256, which produce a 256-bit (64 hex-character) code and are practically impossible to reverse. The behaviour that matters here — deterministic, fixed-length, and avalanche-sensitive to any change — is the same.
03 · The chain

Linking blocks so the past is locked

Each block contains its data, its own hash, and the hash of the block before it. Because a block's hash depends on its contents, editing old data changes that block's hash — which no longer matches what the next block recorded as "previous." The break cascades down the chain. Try it.

Demo 2Tamper with a block

Edit the data in any block. Its hash recomputes, the "prev" link to the next block no longer matches, and every block downstream turns red. Hit Re-mine chain to make it consistent again.

Chain valid — every block links to the one before it.
04 · The rule everyone follows

Consensus: why faking it costs real work

If anyone could add a block instantly, an attacker could rewrite history as fast as they liked. Proof-of-work blockchains add a cost: a valid block's hash must start with a run of zeros. The only way to find such a hash is to keep changing a throwaway number (the nonce) and re-hashing until you get lucky. Honest miners race to do this; a forger would have to out-compute all of them.

Demo 3Mine a block

Set the difficulty (how many leading zeros are required), then mine. Watch the nonce climb as the computer guesses — and notice how each extra zero makes it dramatically harder.

2 leading zeros
Nonce
0
Attempts
0
Go deeper: this is "proof of work"
Finding the nonce is hard, but checking it is instant — anyone can hash the block once and confirm it starts with the required zeros. That asymmetry is the whole trick: it is expensive to produce blocks and cheap to verify them, so the network can trust work it did not do itself. Newer chains (like Ethereum since 2022) replace this race with proof of stake, where validators put up collateral instead of burning electricity — but the goal is the same: make cheating cost more than it pays.
05 · Putting it together

What the three parts buy you

Tamper-evidence

Hashes chain the blocks, so any edit to history is immediately visible as a broken link — you saw this in Demo 2.

No central owner

Thousands hold the same copy and agree by rule, so no single party can be bribed, hacked, or pressured to alter the record.

Costly to forge

Rewriting history means redoing all the proof-of-work faster than the honest majority — economically impractical at scale.

A common misconception: "blockchain = anonymous and untraceable"
Most public blockchains are the opposite of private: every transaction is permanently visible to anyone. Addresses are pseudonymous (a string, not your name), but the full history is open and analyzable. "Immutable and public" is closer to the truth than "anonymous."
06 · Check yourself

Test yourself

Five questions on the mechanism. Pick an answer to see why it's right or wrong, then retry anytime.