Portal and Half-Life hide ASCII art, coded messages, and environmental puzzles in their levels. From ratman dens to the Borealis mystery, here is what Valve buried in its games.
Portal, released by Valve in 2007, contains hidden ASCII art, coded messages, and secret rooms that players spent years discovering and decoding. Portal 2 (2011) expanded on this with more elaborate environmental storytelling. The Half-Life series, which began in 1998 and most recently produced Half-Life: Alyx in 2020, shares the same fictional universe and uses similar techniques to hide narrative information in the environment.
Valve's approach to hidden messages is distinct from most game studios. Rather than placing collectibles or achievement-bait easter eggs, Valve embeds narrative content in spaces that players have to actively seek out or stumble upon. The messages are often warnings, journal entries, or graffiti from characters who are not present in the main story. Decoding them requires the same skills as any substitution or encoding puzzle.
You can test some of the encoding methods Valve used with our Morse code translator](/tools/morse-code-translator) and Caesar cipher tool. The [Wikipedia article on Portal) covers the game's development and reception.
The most famous hidden content in Portal is the "ratman dens." These are secret rooms accessible through breaks in the test chamber walls, where players can find the hideout of Doug Rattmann, a former Aperture Science employee who survived the events of the game by hiding in the facility's maintenance spaces.
The ratman dens contain ASCII art, graffiti, and messages that expand on the game's story. Rattmann's messages include warnings about GLaDOS, the AI that runs the facility, and references to the Companion Cube. Some of the text on the walls is partially obscured or written in a rushed hand, requiring players to interpret incomplete messages. This is a form of steganography: the information is hidden in plain sight, embedded in the environment rather than presented through dialogue or cutscenes.
The dens also contain visual puzzles. In one room, a series of arrows and numbers on the wall appears to be a code. Players determined that it was a directional cipher pointing to the location of the next hidden room. This kind of environmental encoding, where the game world itself is the ciphertext, is a technique that Valve has used consistently across its titles. The Wikipedia article on Valve covers the company's history and design philosophy.
Portal 2, released in 2011, expanded the hidden content significantly. The game introduced the character of Cave Johnson, the founder of Aperture Science, through pre-recorded messages in abandoned test chambers. Some of these messages contained encoded information that players decoded after the game's release.
One notable example is a series of ASCII-encoded images hidden in the game's texture files. Dataminers extracted textures that, when interpreted as ASCII, produced images of Cave Johnson and the Aperture Science logo. This is a form of data hiding similar to LSB steganography, where information is embedded in a medium that is not designed to carry it.
Portal 2 also contains a hidden interactive element in one of the test chambers where a laser can be directed at a specific wall panel to reveal a message. The message is visible only under specific lighting conditions that the player must create by manipulating the game's puzzle mechanics. This integrates the cipher discovery into the gameplay itself rather than hiding it in files or out-of-bounds areas. You can compare this to the terminal-based puzzles in our Fallout terminal hacking tool, which similarly requires interaction with the game system to reveal hidden text.
Aperture Science and Black Mesa are rival research companies within the Half-Life universe. Both were contracted by the US government to develop portal technology. Aperture's approach (the portal gun) and Black Mesa's approach (the resonance cascade) are presented as competing methodologies that led to different disasters.
The connection between the two franchises is established through environmental details rather than explicit exposition. In Portal 2, a dry dock containing the Borealis, an Aperture Science research vessel, is discovered deep beneath the facility. The Borealis is referenced in Half-Life 2: Episode Two as a ship that disappeared with valuable portal technology aboard. The Wikipedia article on the Half-Life series) covers the shared universe.
The Borealis was intended to be the setting for a major plotline in the never-released Half-Life 2: Episode Three. Concept art and design documents leaked over the years show that Valve planned for the player to encounter the Borealis and deal with the consequences of Aperture's portal technology. This plotline was partially resolved in Half-Life: Alyx (2020), where the Borealis is mentioned and its fate is alluded to, though the ship itself does not appear.
The Borealis is one of the longest-running unresolved plot threads in video games. The ship disappeared from its dry dock with part of the dry dock still attached, suggesting that Aperture's portal technology teleported it to an unknown location. In Half-Life 2: Episode Two (2007), Dr. Eli Vance gives the player a mission to find and destroy the Borealis before its technology can be weaponized.
Episode Three was never released. The Borealis storyline remained unresolved for 13 years until Half-Life: Alyx in 2020. Alyx is set before the events of Half-Life 2 and deals with a different plot, but it contains references to the Borealis and to the larger conflict between the Combine and the resistance. The Wikipedia article on Half-Life: Alyx covers the game's story and development.
The Borealis mystery functions as a kind of narrative cipher. The clues are distributed across multiple games, released over more than a decade, and the full picture has never been explicitly stated. Players have pieced together the story from environmental details, dialogue fragments, and leaked design documents. This distributed storytelling is Valve's signature technique, and it requires the same cross-referencing skills that solving a multi-part cipher does.
Half-Life 3 is one of the most rumored unreleased games in the industry. Valve has never officially announced it, but references to a project codenamed "HLX" have appeared in Valve's codebase and engine updates for years.
In 2026, dataminers discovered references to "HLX" and "TF" (widely interpreted as Team Fortress) in Dota 2 engine updates. Dota 2 runs on Source 2, Valve's current engine, and the presence of these codenames in the engine code suggests that Valve is actively developing or prototyping projects under those names. This is not confirmation of Half-Life 3, but it is the strongest technical evidence in years that something is in development.
In July 2026, Valve engineer Christopher Green, who was retiring from the company, held an AMA (Ask Me Anything) session. When asked about HLX, Green responded: "I think you know the answer to that :-)." This is not an official confirmation, but it is the closest a Valve employee has come to acknowledging the project's existence. Valve engineer Pierre-Loup Griffais had previously confirmed in an interview that the Steam Machine (Valve's now-discontinued hardware initiative) would not have exclusive games, which indirectly addressed concerns that HLX might be a VR-only title like Alyx.
As of August 2026, Valve has made no official announcement. The company's policy of only announcing games close to release, established after the years-long silence following Episode Two, means that any HLX project may not be publicly confirmed until shortly before launch.
Valve's approach to hiding information in game environments is consistent across Portal, Half-Life, and their other titles. The technique relies on three principles: information is placed where a curious player will find it but a casual player will miss it, the information is encoded in a way that requires interpretation rather than passive consumption, and the decoded information rewards the player with narrative context that enriches the main story.
This is the same philosophy that underlies good cipher design. The ciphertext is available to anyone, but the plaintext is accessible only to those who apply the correct decoding method. The difference is that Valve's "ciphers" are spatial and visual rather than mathematical. A message scrawled on a wall in a ratman den is a substitution cipher where the substitution is from English to handwritten graffiti, and the key is the player's willingness to look behind the visible geometry.
The Bioshock series used a similar technique with its audio logs, which often contained Morse code segments that players could decode. Our Bioshock Morse decoder handles those segments. The parallel between Valve's environmental encoding and Bioshock's audio encoding is that both treat the game world as a medium for hidden information, and both reward players who bring decoding skills to the experience.
The ratman dens are hidden rooms in Portal accessible through breaks in the test chamber walls. They contain ASCII art, graffiti, and messages from Doug Rattmann, a former Aperture Science employee who survived by hiding in the facility's maintenance spaces. The dens expand on the game's story through environmental storytelling.
Yes. Aperture Science and Black Mesa are rival research companies in the Half-Life universe. Both were contracted by the US government to develop portal technology. The connection is established through environmental details, including the Borealis, an Aperture Science ship referenced in Half-Life 2: Episode Two and discovered in Portal 2.
The Borealis is an Aperture Science research vessel that disappeared from its dry dock with part of the dock still attached, apparently teleported by portal technology. In Half-Life 2: Episode Two, Dr. Eli Vance tasks the player with finding and destroying the ship. The storyline was never fully resolved because Episode Three was never released.
As of August 2026, Valve has not officially announced Half-Life 3. Dataminers found references to a project codenamed HLX in Dota 2 engine updates in 2026. Retiring Valve engineer Christopher Green acknowledged HLX in a July 2026 AMA with the response: I think you know the answer to that. This is the strongest evidence to date but is not an official confirmation.
Fallout Terminal Hacking
Play the Fallout terminal hacking minigame: guess the password from a list of same-length words with X/Y correct feedback, across five difficulty levels.
BioShock Morse Decoder
Decode the hidden Morse code messages from BioShock's audio logs and environmental sounds, with a full list of known messages and a standard Morse code decoder.
Morse Code Translator
Convert text to Morse code and decode dots and dashes back to readable letters.
BioShock's Morse Code Audio Logs: Every Hidden Message, Decoded
BioShock hides Morse code in its audio logs and environmental sounds. Here is every decoded message, the ITU-R M.1677 standard they follow, and how Ken Levine used it for storytelling.
How Return of the Obra Dinn Turns Deduction Into a Cipher Puzzle
Return of the Obra Dinn is a 1-bit deduction game where you determine the fate of 60 crew members. It is a constraint satisfaction problem disguised as an insurance investigation, and it works like a cipher.