Skip to main content

Digital Library of Babel contains every book that has ever been (and ever could be) written

In his infamous short story The Library of Babel, author Jorge Luis Borges presents readers with an interesting thought experiment. The story is centered around fictional library that contains every possible combination of all the letters of in the alphabet, in a massive collection of 410-page novels. Because the collection contains every possible combination of characters, the library holds not only every book that has ever been written, but also every book that could ever be written.

The only problem is that, in addition to the complete works of Shakespeare, Voltaire, and every other author who has ever been born; the library also contains a staggeringly large amount of incomprehensible gibberish. Many of the permutations of alphabetic characters are totally random strings of letters, so a large portion of the library’s books are pure nonsense. There’s also no effective way to organize so many volumes of worthless dribble, so in the story, the librarians who maintain the collection quickly lose their minds trying to reign in the unfathomably large amount of nonsensical books.

Recommended Videos

It’s a fascinating story, but the thing is, a library of this size could never actually exist in the physical world. The Library of Babel would have contained 1.9×10^1834097 books, which is astronomical compared to the 22 million (2.18×10^6) found in some of the world’s biggest brick-and-mortar libraries. Clearly, a physical Library of Babel would be impossible to build — but what if the library could exist digitally?

This very idea is what inspired artist and programmer Jonathan Basile to create a digital version of the Library of Babel. His library contains a massive collection of digital novels (currently 10^4677 and counting), all of which are are 410 pages long, and contain a completely random arrangement of letters. The tricky part is that even this digital version of the Library of Babel has much too large a footprint for any practical storage or accessibility. Basile discovered that just one million books required almost two terabytes of space, so he quickly recalculated with a new approach.

Using random number generators and a reversible seed-style page generator similar to the ones used by search engines and library systems, visitors call up entries in the digital library using algorithms run backwards to search the database. In plain English, this means that any user who searches for a phrase or string of text in the library receives a freshly generated “copy” of that text from the seed that held its place on the digital shelves.

The system works the same way if a library visitor selects a random result from the site’s search function, although true to the story’s philosophy, much of what you’ll find is nonsensical strings of letters. Users more interested in browsing the library shelves can sort through a simple visualization of the Library of Babel’s hexagonal chamber system, selecting walls of books, specific shelves, and then names on the spines. Basile understands that the concept of a universal library has its dangers, and the site includes a forum where users and fans can discuss the library’s philosophical implications, as well as real-world legal issues like plagiarism, copyright laws, and the impact the library might have on the publishing industry.

If you’re less concerned with the legal and philosophical issues in play, you can still get a kick out of the library’s enormity. You can search for your own writing in the library, or even stories about your birth, your death (or someone else’s birth or death, regardless of whether or not those events have happened yet). It gets spooky fast.

Chloe Olewitz
Former Digital Trends Contributor
Chloe is a writer from New York with a passion for technology, travel, and playing devil's advocate. You can find out more…
Google Gemini’s best AI tricks finally land on Microsoft Copilot
Copilot app for Mac

Microsoft’s Copilot had a rather splashy AI upgrade fest at the company’s recent event. Microsoft made a total of nine product announcements, which include the agentic trick called Actions, Memory, Vision, Pages, Shopping, and Copilot Search. 

A healthy few have already appeared on rival AI products such as Google’s Gemini and OpenAI’s ChatGPT, alongside much smaller players like Perplexity and browser-maker Opera. However, two products that have found some vocal fan-following with Gemini and ChatGPT have finally landed on the Copilot platform. 

Read more
Rivian set to unlock unmapped roads for Gen2 vehicles
rivian unmapped roads gen2 r1t gallery image 0

Rivian fans rejoice! Just a few weeks ago, Rivian rolled out automated, hands-off driving for its second-gen R1 vehicles with a game-changing software update. Yet, the new feature, which is only operational on mapped highways, had left many fans craving for more.
Now the company, which prides itself on listening to - and delivering on - what its customers want, didn’t wait long to signal a ‘map-free’ upgrade will be available later this year.
“One feedback we’ve heard loud and clear is that customers love [Highway Assist] but they want to use it in more places,” James Philbin, Rivian VP of autonomy, said on the podcast RivianTrackr Hangouts. “So that’s something kind of exciting we’re working on, we’re calling it internally ‘Map Free’, that we’re targeting for later this year.”
The lag between the release of Highway Assist (HWA) and Map Free automated driving gives time for the fleet of Rivian vehicles to gather ‘unique events’. These events are used to train Rivian’s offline model in the cloud before data is distilled back to individual vehicles.
As Rivian founder and CEO RJ Scaringe explained in early March, HWA marked the very beginning of an expanding automated-driving feature set, “going from highways to surface roads, to turn-by-turn.”
For now, HWA still requires drivers to keep their eyes on the road. The system will send alerts if you drift too long without paying attention. But stay tuned—eyes-off driving is set for 2026.
It’s also part of what Rivian calls its “Giving you your time back” philosophy, the first of three pillars supporting Rivian’s vision over the next three to five years. Philbin says that philosophy is focused on “meeting drivers where they are”, as opposed to chasing full automation in the way other automakers, such as Tesla’s robotaxi, might be doing.
“We recognize a lot of people buy Rivians to go on these adventures, to have these amazing trips. They want to drive, and we want to let them drive,” Philbin says. “But there’s a lot of other driving that’s very monotonous, very boring, like on the highway. There, giving you your time back is how we can give the best experience.”
This will also eventually lead to the third pillar of Rivian’s vision, which is delivering Level 4, or high-automation vehicles: Those will offer features such as auto park or auto valet, where you can get out of your Rivian at the office, or at the airport, and it goes off and parks itself.
While not promising anything, Philbin says he believes the current Gen 2 hardware and platforms should be able to support these upcoming features.
The second pillar for Rivian is its focus on active safety features, as the EV-maker rewrote its entire autonomous vehicle (AV) system for its Gen2 models. This focus allowed Rivian’s R1T to be the only large truck in North America to get a Top Safety Pick+ from the Insurance Institute for Highway Safety.
“I believe there’s a lot of innovation in the active safety space, in terms of making those features more capable and preventing more accidents,” Philbin says. “Really the goal, the north star goal, would be to have Rivian be one of the safest vehicles on the road, not only for the occupants but also for other road users.”

Read more
Jaguar Land Rover, Nissan hit the brake on shipments to U.S. over tariffs
Range Rover Sport P400e

Jaguar Land Rover (JLR) has announced it will pause shipments of its UK-made cars to the United States this month, while it figures out how to respond to President Donald Trump's 25% tariff on imported cars.

"As we work to address the new trading terms with our business partners, we are taking some short-term actions, including a shipment pause in April, as we develop our mid- to longer-term plans," JLR said in a statement sent to various media.

Read more