Dark Net Onion Links: Address Formats and Technical Structure

Onion links are cryptographic identifiers, not domain names. V3 addresses contain 56 base32 characters encoding an ed25519 public key with checksum.

Published: | Updated: November 23, 2026 | By: Derek Whitman | 10 min read

An onion link is a .onion address that serves as a Tor hidden service identifier. Unlike conventional domain names registered through DNS, these addresses are cryptographic representations of public keys generated when the service is created. The operator cannot choose a memorable name; instead, the address is mathematically derived from the service's key pair, which is why onion links appear as random strings of letters and numbers.

The current standard, V3 onion addresses, consists of exactly 56 characters before the .onion suffix[1]. This length reflects the address structure: it encodes a 32-byte ed25519 master public key, a 2-byte checksum, and a one-byte version field (default 0x03), all represented in base32[3]. Base32 encoding uses only lowercase letters a through z and digits 2 through 7, avoiding characters that might be confused in print or handwriting[2]. A typical V3 address looks like this:

thehiddenwiki3gk2qjwm6xpqz2vqpx5h2rqfbvxqhpqvxqpqz3vqpqz3.onion

The structure is base32(PUBKEY | CHECKSUM | VERSION) + '.onion' where the public key occupies the majority of the 56 characters[3]. Because the address contains the actual cryptographic key needed to establish a connection, the Tor network can verify that you are reaching the intended service without relying on external certificate authorities or DNS records. This design means the address itself is the security anchor—if you have the correct onion link, you can authenticate the service directly.

The randomness is not a flaw but a deliberate consequence of encoding the full public key. It prevents third parties from impersonating a service, since generating a matching address would require possessing the corresponding private key. For practical use, this means you should bookmark verified onion links or obtain them from trusted sources, as typing them manually invites errors. Dark Net Web Sites: What They Are and How They Work explains how these addresses fit into the broader Tor hidden service ecosystem.

V2 vs V3 Onion Address Formats: Key Technical Differences

Tor has used two distinct onion address formats: the deprecated V2 and the current V3 standard. V2 addresses are 16 characters long and were constructed from an 80-bit truncated SHA1 hash of a 1024-bit RSA public key[2]. A typical V2 address looked like 3g2upl4pq6kufc4m.onion—short enough to memorise or type, but cryptographically weaker than modern standards. V3 addresses, by contrast, are 56 characters long because they encode the entire 32-byte ed25519 public key rather than a truncated hash[1][2]. This fundamental difference in key representation explains both the length increase and the security improvement.

The V3 format encodes three components as base32(PUBKEY | CHECKSUM | VERSION) + '.onion'[3]. The PUBKEY is the full ed25519 master public key (32 bytes), CHECKSUM is a 2-byte truncated SHA3-256 hash, and VERSION is a single byte set to 0x03[3]. Because the address contains the complete public key, the Tor client can authenticate the service directly without intermediate lookups or trust anchors. V2 addresses, using only a hash fragment, required additional protocol steps to verify identity and were vulnerable to collision attacks as computing power increased.

Ed25519 elliptic curve cryptography offers stronger security per bit than RSA, and the full key inclusion means V3 addresses resist preimage attacks—an adversary cannot feasibly generate a private key that produces a chosen address. V2's truncated hash made vanity address generation easier but also allowed attackers to create lookalike addresses with modest effort. The Tor Project deprecated V2 services in October 2021, and modern Tor software no longer connects to them.

Side-by-side comparison:

Feature V2 (deprecated) V3 (current)
Length 16 characters 56 characters[1]
Cryptography 1024-bit RSA ed25519 (32-byte key)[2]
Encoding 80-bit SHA1 hash Full public key + checksum + version[3]
Character set Base32 (a-z, 2-7) Base32 (a-z, 2-7)[2]

If you encounter a 16-character onion link today, it will not load in current Tor Browser versions. Only 56-character V3 addresses remain functional, and this length is now the reliable indicator of a valid, supported onion service.

A valid V3 onion address follows strict formatting rules that allow both automated tools and manual inspection to confirm structural integrity. The address must contain exactly 56 characters before the .onion suffix[1][2]. These characters use only the base32 alphabet: lowercase letters a through z and digits 2 through 7[2]. No uppercase letters, no digits 0, 1, 8, or 9, and no special characters appear in a legitimate V3 address. If you see an address with 55 or 57 characters, or one containing the letter "o" or digit "1", it is either malformed or an attempt at typosquatting.

The .onion top-level domain is mandatory and appears at the end of every Tor hidden service address. This TLD is not part of the public DNS system; it exists only within the Tor network and signals to Tor Browser that the request should be routed through onion circuits rather than exit nodes. An address missing the .onion suffix, or using a different TLD such as .com or .net, is not a hidden service and will not function within Tor's routing protocol.

Embedded Checksum and Error Detection

The 56-character string encodes more than the public key—it includes a 2-byte checksum calculated as SHA3_256('.onion checksum' | PUBKEY | VERSION) truncated to two bytes[3]. This checksum occupies a fixed position within the base32-encoded structure and provides automatic error detection. When Tor Browser processes an onion address, it decodes the base32 string, extracts the public key, version byte, and checksum, then recalculates the checksum from the key and version. If the recalculated value does not match the embedded checksum, the address is rejected before any network request occurs[3].

This mechanism prevents most typographical errors from resulting in connection attempts to nonexistent services. If you mistype a single character, the checksum will almost certainly fail validation, and Tor Browser will display an error rather than attempting to resolve the address. The checksum does not protect against intentional impersonation—an attacker can generate a valid address with a different public key—but it eliminates accidental misrouting caused by transcription mistakes.

Version Byte and Future Compatibility

The VERSION byte, currently set to 0x03 by default, occupies one byte within the encoded address structure[3]. This field allows the Tor protocol to introduce new cryptographic schemes or address formats in the future without breaking existing addresses. When Tor software encounters an address with an unrecognised version byte, it can reject the connection or prompt for an upgrade rather than attempting to parse the address with incompatible rules. For current V3 addresses, the version byte is always 0x03, and this value is included in the checksum calculation to ensure that any modification to the version invalidates the address[3].

In practice, you will not see the version byte as a separate visible component—it is embedded within the 56-character base32 string alongside the public key and checksum. The encoding formula base32(PUBKEY | CHECKSUM | VERSION) + '.onion' means all three elements are concatenated before base32 encoding, producing a single continuous string[3]. The version byte's presence ensures that if Tor migrates to a new cryptographic standard, old and new addresses can coexist without ambiguity, and clients can identify which parsing rules to apply.

Understanding V3 Onion Address Encoding

The V3 onion address encoding formula is base32(PUBKEY | CHECKSUM | VERSION) + '.onion' where each component serves a specific cryptographic function[3]. The PUBKEY is a 32-byte ed25519 master public key, the CHECKSUM is a 2-byte truncated SHA3-256 hash, and VERSION is a one-byte field with default value 0x03[3]. These three components—totalling 35 bytes—are concatenated in that order, then encoded using base32 to produce exactly 56 lowercase characters before the .onion suffix[2]. Understanding this structure explains why V3 addresses appear random and why their length cannot vary.

Public Key Component

The 32-byte ed25519 master public key occupies the majority of the encoded address. Ed25519 is an elliptic curve signature scheme that provides strong security with relatively short key lengths compared to RSA. Because the address contains the full public key rather than a hash, Tor clients can verify the service's identity directly during the connection handshake without additional lookups. The public key is generated when the hidden service is created, and the corresponding private key remains on the service operator's server. No part of the public key is human-readable or memorable; it is a binary value that, when encoded, produces the seemingly random character sequence you see in onion addresses.

Checksum Derivation and Validation

The 2-byte checksum is calculated as SHA3_256('.onion checksum' | PUBKEY | VERSION) truncated to two bytes[3]. The literal string '.onion checksum' is prepended to the concatenation of the 32-byte public key and the one-byte version field, then hashed using SHA3-256. The first two bytes of the resulting 32-byte hash become the checksum inserted into the address[3]. This process ties the checksum to both the public key and the version byte, so any alteration to either component will invalidate the checksum. When you enter an onion address into Tor Browser, the software decodes the base32 string, extracts the three components, recalculates the checksum from the public key and version, and compares it to the embedded checksum. A mismatch triggers an immediate error before any network activity occurs.

Why Exactly 56 Characters

The 56-character length results from base32 encoding of 35 bytes. Base32 represents every five bits of input data as one character from the alphabet a–z and 2–7[2]. Thirty-five bytes equal 280 bits, which divide evenly into 56 groups of five bits, producing 56 base32 characters[2]. The encoding is deterministic: the same 35-byte input always yields the same 56-character output, and no padding characters are needed because 280 is a multiple of five. This fixed length allows simple validation—any address shorter or longer than 56 characters is structurally invalid before you even check the character set or checksum.

The version byte, currently 0x03, occupies one of those 35 bytes and is included in the checksum calculation to prevent version tampering[3]. If Tor introduces a new address format in future, a different version byte will produce a different checksum and a visibly different address, ensuring that clients can distinguish formats and apply the correct parsing rules. For all current V3 addresses, the version remains 0x03, and this value is embedded within the base32-encoded string rather than appearing as a separate visible field.

V2 vs V3 Onion Address Comparison and Validation Checklist

Feature
Address length (excl. .onion)
V2 (Deprecated)
16 characters
V3 (Current Standard)
56 characters
Validation Rule
Must be exactly 56 for valid V3
Feature
Cryptographic basis
V2 (Deprecated)
80-bit SHA1 hash of 1024-bit RSA key
V3 (Current Standard)
Full 32-byte ed25519 public key
Validation Rule
V3 encodes complete key, not hash
Feature
Character set
V2 (Deprecated)
Base32: a–z, 2–7
V3 (Current Standard)
Base32: a–z, 2–7
Validation Rule
No uppercase, no 0, 1, 8, 9
Feature
Embedded checksum
V2 (Deprecated)
None
V3 (Current Standard)
2-byte SHA3-256 truncated hash
Validation Rule
Auto-validates on decode; rejects typos
Feature
Version byte
V2 (Deprecated)
Not applicable
V3 (Current Standard)
0x03 (one byte)
Validation Rule
Included in checksum calculation
Feature
Current status
V2 (Deprecated)
Deprecated Oct 2021; no longer connects
V3 (Current Standard)
Active; only supported format
Validation Rule
Reject any 16-char address
Feature
Regex pattern (V3)
V2 (Deprecated)
Not applicable
V3 (Current Standard)
^[a-z2-7]{56}\.onion$
Validation Rule
Matches valid V3 structure exactly
Feature
Security strength
V2 (Deprecated)
Vulnerable to collision attacks
V3 (Current Standard)
Resistant to preimage attacks
Validation Rule
V3 required for modern security

Key Takeaways

  • V3 onion addresses are exactly 56 characters long (excluding .onion) and use only lowercase base32 characters a–z and 2–7; any deviation signals an invalid or malicious address[1][2].
  • The address encodes a full 32-byte ed25519 public key, a 2-byte checksum, and a version byte (0x03) using the formula base32(PUBKEY | CHECKSUM | VERSION) + '.onion', which ensures cryptographic integrity and automatic typo detection[3].
  • V2 addresses (16 characters) were deprecated in October 2021 and no longer function in current Tor Browser versions; only 56-character V3 addresses remain supported[2].
  • The embedded checksum prevents most transcription errors by validating address integrity before any network request, though it does not protect against intentional impersonation[3].
  • Always verify address length and character set manually when receiving onion links from untrusted sources—reject addresses with uppercase letters, digits 0, 1, 8, or 9, or incorrect length.

Once you can recognise valid V3 address structure, explore how to find dark web sites using verified directories and search engines that list current onion services.

Footnotes

  1. V3 onion services usage | The Tor Project
  2. rend-spec-v3.txt
  3. Encoding onion addresses [ONIONADDRESS] - Tor Specifications
OnionLens

Explore More Onion Topics

Browse our guides on hidden service security, Tor configuration, and practical navigation techniques to deepen your understanding of the dark web ecosystem.

View All Guides