Library of Babel Explained: The Site With Every Text Ever

Updated

The Library of Babel is a website created by writer Jonathan Basile in 2015 that simulates the infinite library from Jorge Luis Borges' 1941 short story of the same name. It contains every possible page of 3,200 characters made from 26 lowercase letters, the space, the comma and the period, which means any text you can type in those characters already exists somewhere in it, at a fixed address you can visit.

What is the Library of Babel website?

Go to libraryofbabel.info and you get a portal with three options: wander to a random book, browse the shelves by hand, or search for a piece of text. Open any book and you will almost certainly see pure gibberish. Search for your name, your birthday, or the first line of the essay you have not written yet, and the site will show you the exact page where it already lives.

The site's own count puts it at roughly 10 to the power of 4,677 books. For scale, that number has more than 4,600 digits. There are not enough atoms in the observable universe to write it out as physical books, not even close.

The Borges story behind it

"The Library of Babel" (La biblioteca de Babel) is a short story by the Argentine writer Jorge Luis Borges, first published in Spanish in 1941 and later collected in Ficciones (1944). It imagines a universe that is a library: an endless network of identical hexagonal rooms lined with shelves of books.

Each book has 410 pages, 40 lines per page and roughly 80 characters per line, built from a small set of symbols. Because the library holds every possible combination of those symbols, nearly every book is nonsense, yet somewhere on its shelves sits every true history, every lie, every book ever written and every book that ever could be.

The story follows the people who live there. They swing between joy at owning every answer and despair at never being able to find one. Some form cults, some destroy books they consider worthless, and some hunt for a legendary room of special books or for a librarian said to have read the perfect catalog of the whole library. It is a short read, and it is genuinely worth reading in full.

How can one website contain every text?

Here is the trick: Basile's library does not store any books. It would be impossible. Instead, it uses an algorithm that turns a location into a page of text, and back again.

So the library does not "write" your sentence when you search for it. Mathematically, that page was always at that address. Basile has said the site does not generate books on request; every arrangement already exists in a fixed place.

How does search work on the Library of Babel?

  1. Open the search page and type up to 3,200 characters.
  2. Stick to lowercase letters, spaces, commas and periods. Those are the only characters the library uses.
  3. Hit search and you get a location: hexagon, wall, shelf, volume and page.
  4. Click through and you land on a full page where your text appears, usually surrounded by random characters.

One detail that makes it click: the hexagon names for searched text are enormous. Basile has explained that text you search for will almost always land in a hexagon whose name is itself around 3,200 characters long. The address is about as long as the text, because the address basically is the text in disguise.

There is also a sister project, the Babel Image Archives, that does the same thing for pictures: every possible image on a 416 by 640 pixel grid using 4,096 colors.

Why is the Library of Babel so mind-bending?

Tips for exploring the Library

Sites like the Library of Babel

Voynich Manuscript Scans

High-resolution scans of a real book nobody has been able to read. Basically a Babel page you can hold.

Best for: staring at text that might mean something.

Liber Primus

The unsolved runic book at the center of the Cicada 3301 mystery.

Best for: codebreakers and lore hunters.

List of Lists of Lists

The most meta page on Wikipedia, a list of lists. Borges would approve.

Best for: a quick dose of infinite-library energy.

Scale of the Universe 2

Zoom from the Planck length to the edge of the observable cosmos. The other way to feel tiny.

Best for: when huge numbers are not big enough.

Zoomquilt

An infinite zoom through surreal, hand-painted worlds. Hypnotic in the same endless way.

Best for: zoning out after your brain melts.

For more brain-melting reads, see our internet rabbit holes and unsolved mysteries and our list of weird websites to visit when bored. The Rabbit Hole category is full of this stuff too.

Can't decide? Spin the Brain Rot wheel and let it pick for you.

FAQ

Who created the Library of Babel website?

The Library of Babel website was created by writer Jonathan Basile in 2015. It is based on Jorge Luis Borges' 1941 short story "The Library of Babel".

Does the Library of Babel really contain every text?

It contains every possible page of 3,200 characters made from lowercase letters, space, comma and period. Any text written with only those characters already exists in it at a fixed address.

How does the Library of Babel generate pages?

It does not store books. An algorithm calculates each page from its address and can also run in reverse, turning any text you search into the address where it appears.

Why is most of the Library of Babel gibberish?

Because it holds every combination of characters, and almost all possible combinations are random noise. Meaningful pages exist, but they are vanishingly rare.

Is the Library of Babel website safe?

Yes. It is a free text site with no downloads, and searching it simply shows you the address where your text already appears.