Most web addresses are designed to be remembered. An onion address is the opposite: 56 seemingly random characters followed by .onion. That awkward string is not a design flaw. It is the visible result of a system that replaces the internet’s usual trust machinery with pure cryptography, and it is one of the more elegant ideas in modern networking.
No registrar, no DNS
On the ordinary web, a domain name is rented from a registrar and translated into an IP address by the Domain Name System. Trust is added on top by certificate authorities, which vouch that a server really controls the name it claims.
Onion services use none of this. Nobody registers an onion address and nobody can take it away. The address is generated on the operator’s own machine, and the Tor network never learns the server’s IP address at all.
The address is the key
When an operator creates an onion service, the software generates an Ed25519 key pair. The public key, plus a short checksum and a version byte, is encoded in base32. The result is the 56-character address used by current “version 3” services.
This has a powerful consequence. Because the address is derived from the public key, the address authenticates itself. If you connect to the correct address, only the holder of the matching private key can complete the handshake. No certificate authority is required, and the connection is encrypted end to end by default. A fuller walk-through of how onion addresses work is worth reading if you want the step-by-step version.
How a connection is made
A normal Tor connection to a public website passes through three relays and exits onto the open internet. An onion service connection never leaves the network.
The service first picks several relays as introduction points and publishes a signed descriptor listing them to a distributed directory inside Tor. A visitor who knows the address fetches that descriptor, chooses a relay to act as a rendezvous point, and sends the service a message through one of its introduction points. Both sides then build circuits to the rendezvous point and meet in the middle. Neither learns the other’s location, and no single relay sees both ends.
Why version 2 was retired
Older onion addresses were only 16 characters long. They relied on RSA-1024 keys and a truncated SHA-1 hash, both of which had aged badly. The directory design also allowed malicious relays to discover addresses that operators had never published. Version 3 fixed these problems with modern cryptography and a redesigned directory, and Tor removed support for the old format in 2021.
The price of self-authentication
The same property that makes onion addresses secure makes them hard for people to use. Humans cannot realistically memorise or compare 56 random characters, so they depend on bookmarks and lists of dark web URLs published by third parties.
Attackers exploit this. With enough computing power it is possible to generate “vanity” addresses that share the first several characters with a well-known site. A user who checks only the beginning of the string can be sent to a convincing clone. The cryptography guarantees that you reached the address you typed. It cannot guarantee that you typed the right one.
Verifying an address properly
A few habits close most of that gap:
Get the address from the operator’s own clearnet site, served over HTTPS, rather than from a forum post or a random directory.
Look for the Onion-Location feature. Many legitimate sites advertise their onion address through a header that Tor Browser detects and offers automatically.
Compare the entire string, not just the first few characters, and bookmark it once verified.
Check for a PGP-signed statement if the operator publishes one.
Why it matters beyond Tor
Self-authenticating names are a broader idea than one network. They show that naming, identity and encryption can be collapsed into a single key, with no central party to compromise or coerce. The trade-off is usability, and that tension between security and convenience is one every engineer will recognise. Onion addresses simply make it visible in 56 characters.

