Skip to content
foundaday
Site of the day

The Library of Babel

Borges's short story turned into code: a library holding every possible 3,200-character page. Search any sentence and you'll find it's already on a shelf.

The Library of Babel

What it is

Jonathan Basile's site turns Jorge Luis Borges's short story "The Library of Babel" into a working web library. In the story, the library holds every possible book — every combination of letters. Here the idea is made real: every possible page of 3,200 characters, drawn from lowercase letters, space, comma and full stop, is available. That's roughly 10 to the power of 4,677 books. You can wander hexagonal rooms, walls, shelves and volumes, open a random page, or search for any text and get its exact "address".

Why we picked it

It's literature, maths and a very good joke all at once. The pages aren't stored anywhere or generated on request; the algorithm guarantees that every text always lives in the same place. So your name, the opening line of your favourite poem, even this paragraph, is already sitting on a shelf somewhere — buried in an unimaginable amount of gibberish. Basile, who holds a PhD in Comparative Literature, went on to write a whole book about the project, and the About page offers a thoughtful introduction to Borges and the thinking behind it all.

Where to start

  • Browse — walk the rooms and pull a random volume off the shelf.
  • Search — type a sentence and see exactly where it lives.
  • Random — a random page, almost certainly nonsense.
  • About — the story of the project and a primer on Borges.
  • Image Archives — the same idea applied to images: every possible picture.

Who it's for

Borges fans and anyone who loves a philosophical puzzle. People curious about combinatorics and algorithms. Literature and computer science teachers looking for a great discussion starter. Anyone who fancies five minutes of staring into infinity and feeling pleasantly lost.

Quick answers

Are pages generated when I search? According to the author, no: every text is always found in the same location, "in perpetuity".

What characters can I search for? Lowercase letters, space, comma and full stop — no capitals, digits or non-Latin scripts.

Who made it? Jonathan Basile, who also wrote a book about it called "Tar for Mortar".

Also in this issue

Similar finds

Site of the day
omniglot.comenWorldwide

Omniglot

An encyclopedia of writing systems and languages: alphabets, abjads, syllabaries, undeciphered and invented scripts, plus phrases in hundreds of languages.

Site of the day
publicdomainreview.orgenWorldwide

The Public Domain Review

An online journal digging up curious works from the public domain — odd prints, forgotten books, maps and photos — with essays that give them context.

Site of the day
weavesilk.comenWorldwide

Silk generative art

A generative drawing toy: move your mouse and glowing silk threads follow, mirrored into symmetrical patterns. A striking image in a minute, no skill needed.