The Library of Babel is a mind-bending conceptual and digital project inspired by Argentinian writer Jorge Luis Borges’ 1941 short story The Library of Babel.
In the Borges version, the “universe” is an infinite library containing every possible book of a fixed format – essentially every possible arrangement of letters, punctuation and spaces. Most of these books are pure gibberish, but buried within the library are books that contain every work of text, every truth, every falsehood, every biography, every possible history – even this sentence, and every variation of it.
In 2015, Brooklyn-based author and coder Jonathan Basile developed a powerful algorithm that brought this concept to life in a digital form at libraryofbabel.info. His online library generates and indexes every possible page containing up to 3,200 characters – made up of letters, spaces, commas and periods. The result is a searchable database of 10^4677 possible “books”, an astronomically large number.
Basile limited the Library of Babel to pages of 3,200 characters (about 40 lines of 80 characters) primarily for practical and computational reasons. The original Borges story describes books with 410 pages of 40 lines, each with 80 characters, which would mean around 1,312,000 characters per book – enormous in terms of combinations. By capping it at 3,200 characters, Basile could simulate infinity while still making the experience accessible, searchable, and computable within a web environment.
Basile’s genius was in realising that you don’t need actual infinity to feel its weight – just a taste.
In Basile’s Library of Babel, every page has a unique address, based on a system that mirrors Borges’ vision of an infinite library made of hexagonal rooms. The structure is hierarchical: at the top level are hexagons (the rooms), each identified by a random string of letters. Inside each hexagon are walls, and each wall has several shelves. Every shelf holds multiple volumes, and each volume contains 410 pages. Finally, each page has its position within the volume. This creates a navigable coordinate system – hexagon → wall → shelf → volume → page – allowing you to pinpoint a single page among the virtually infinite combinations. When you search for a phrase, the system returns its exact “location” in this address space, giving you the eerie impression that your sentence was always there, waiting in the stacks.
Think of it this way. The Library of Babel address for an exact version of this chapter of REMORANDOM, down to the last space, comma and full point is wall 2, shelf 1, volume 27 of hexagon 2yfmseg60w93hkw9xa1cifsdecocreq2ucczhpn... A version with a single word changed or comma added would exist at another address, and so on … Everything that has ever been written, and will ever be written, using the letters A to Z, a comma, full point and a space – ALREADY EXISTS programmatically somewhere in the Library of Babel – amidst a sea of gibberish.
What’s compelling about the Library of Babel is not its practicality (it’s completely useless for research) but its philosophical implications. It explores questions of infinity, randomness and meaning. If all possible knowledge already exists in a chaotic, unreadable form, what is the role of creativity? Are we discovering ideas or assembling them from pre-existing possibilities? It also touches on epistemology: how do we find truth in a sea of noise?
Postscript
Having completed the text Library of Babel, Basile recognised that his code could also be applied to images. So, the Babel Image Archives at babelia.libraryofbabel.info contains every possible 4,096-colour, 640 x 416 pixel image – about 10^961,755 in total. Wrap your head around that.
_______________________
References
wikipedia.org/wiki/The_Library_of_Babel_(website)
libraryofbabel.info
theparisreview.org/blog/2015/07/23/the-library-of-babel-as-seen-from-within
fastcompany.com/3045446/borges-universal-library-is-now-a-website-but-good-luck-finding-anything
Images
1. Sample page from the Library of Babel with Erik Desmazieres etching
2. Library of Babel (First Edition) book. Credit: secondstorybooks.com
3. Erik Desmazieres etching for an edition of Borges' Library of Babel
4. Jorge Luis_Borges in 1951. Photo credit: Grete Stern
5. Library of Babel website screenshot. Credit:
libraryofbabel.info
6. Library of Babel sample page screenshot. Credit:
libraryofbabel.info
7. Jonathan Basile
8. Video: "El universo que otros llaman la biblioteca" Jonathan Basile at TEDxUSagradoCorazón, November 2015
9. Babel Image Archive screenshot. Credit: babelia.libraryofbabel.info
10. Reverse image search of Remo to find address. Credit: babelia.libraryofbabel.info





