The story originally appeared in Spanish in Borges's 1941 collection of stories El Jardín de senderos que se bifurcan (The Garden of Forking Paths). That entire book was, in turn, included within his much-reprinted Ficciones (1944). Two English-language translations appeared approximately simultaneously in 1962, one by James E. Irby in a diverse collection of Borges's works entitled Labyrinths and the other by Anthony Kerrigan as part of a collaborative translation of the entirety of Ficciones.
Borges's narrator describes how his universe consists of an endless expanse of interlocking hexagonal rooms, each of which contains the bare necessities for human survival—and four walls of bookshelves. Though the order and content of the books is random and apparently completely meaningless, the inhabitants believe that the books contain every possible ordering of just a few basic characters (letters, spaces and punctuation marks). Though the majority of the books in this universe are pure gibberish, the library also must contain, somewhere, every coherent book ever written, or that might ever be written, and every possible permutation or slightly erroneous version of every one of those books. The narrator notes that the library must contain all useful information, including predictions of the future, biographies of any person, and translations of every book in all languages. Conversely, for many of the texts some language could be devised that would make it readable with any of a vast number of different contents. (Of course text consisting of all the same letter 'aaaaa' would not have any content by any scheme of interpretation).
Despite — indeed, because of — this glut of information, all books are totally useless to the reader, leaving the librarians in a state of suicidal despair. However, Borges speculates on the existence of the "Crimson Hexagon", containing a book that contains the log of all the other books; the librarian who reads it is akin to God.
Many of Borges's signature themes are featured in the story, including infinity, reality, cabalistic reasoning, and labyrinths. The concept of the library is often compared to Borel's dactylographic monkey theorem. There is no reference to monkeys or typewriters in the The Library of Babel story; Borges had mentioned that analogy in his earlier 1939 essay The Total Library: "[a] half-dozen monkeys provided with typewriters would, in a few eternities, produce all the books in the British Museum". In this story, the closest equivalent is the line: "A blasphemous sect suggested [...] that all men should juggle letters and symbols until they constructed, by an improbable gift of chance, these canonical books".
Borges would examine a similar idea with his later story, "The Book of Sand"; in the later story, there is an infinite book (or book with an indefinite number of pages) rather than an infinite library. In addition, the Book of Sand is written in an unknown alphabet and its content is not obviously random.
The concept of the library is also overtly analogous to the view of the universe as a sphere having its center everywhere and its circumference nowhere. The mathematician and philosopher Blaise Pascal employed this metaphor, and in an earlier essay Borges noted that Pascal's manuscript called the sphere effroyable, or "frightful".
In any case, it is clear that a library containing all possible books, arranged at random, is equivalent (as a source of information) to a library containing zero books.
Very large libraries typically contain several million volumes.
In his book Out of Control, Kevin Kelly devotes a chapter to the concept presented by Borges. Among other things, he proposes that the librarians may have been horribly mistaken about the nature of some of the books of nonsense. Some of these are assuredly copies of other books, some written in a substitution cipher, others phonetically, some in made-up languages, etc. Kelly points out the proposal that every book in the library is legible, if one decodes it right. This lends itself to the philosophical idea proposed by Immanuel Kant, that by defining rules for the universe, we create rules of the universe. Because the librarians assumed that the books of nonsense were exactly that, they may have tossed away several copies of Directions to the crimson hexagon from where you are now standing, simply because it was written in a cipher. Additionally, because there are by definition all books, there are certainly also books of lies and falsehoods. For each copy of the codex to the library, there will be many copies of false codices, claiming some false books to be true and some true books to be false. In short, any room in the library could be the crimson hexagon.
Kelly also takes a mental journey through the library, realizing that a book entitled "Out of Control, by Kevin Kelly" lies hidden somewhere in the library. This copy of this book is better than the one he is currently writing. His narrative takes a turn here, as he realizes that he would spend more time looking for such a book than he would actually writing such a book himself. He returns to the philosophical examination of the library by noting that hidden in the gibberish of the library, there are works beyond human capacity to write, simply by definition that it contains all possible books, of which these are a possibility. The library cannot be damaged by the destruction of any of its books because even though a single book is unique, there are also similar books differing by a single letter. The library is a temptation, because it offers these gems of enlightenment, and buries them in deception. He concludes by saying that one can consider any text, including his, as being pulled from the library by the act of the author defining the search letter by letter until they reach a text close enough to the one they intended to write. The text already existed theoretically, but had to be found by the act of the author's imagination.
In one short essay, W.V.O. Quine noted the interesting fact that the Library of Babel is finite (i.e., we will theoretically come to a point in history where everything has been written), and that the Library of Babel can be constructed in its entirety simply by writing a dot on one piece of paper and a dash on another. These two sheets of paper could then be alternated back and forth at random by the bearer, who would be able to read the resulting text in binary as he flipped them back and forth. This shows that the Library of Babel is actually quite manageable, and that everyone with paper and a pencil can create it in a couple of seconds.
Related Links and Commentary
Other such simulations also exist
My Suicidal Despair after Paula Walked out, by Geldof; Sir Bob on Tragedy, Fear of Marriage and Love for Little Tiger Lily
Sep 16, 2002; Byline: RICHARD SHEARS BOB GELDOF has told how he considered killing himself when Paula Yates left him for rock star Michael...