Privacy

What Is an Onion Site? How .onion Addresses Work

An onion site lives only inside the Tor network: no DNS, no IP address to look up, and an address that is also its public key.

Cysoro Security TeamPublished · 8 min read
.onion PRIVACY Onion sites Websites that only exist inside Tor.
Quick answer

An onion site is a website or service reachable only through the Tor network, at an address ending in .onion. The address is a 56-character string derived from the site's public key, so the connection is encrypted and authenticated end to end without a certificate authority, and neither the visitor nor the site reveals its IP address. You need Tor Browser or the Tor network to visit one.

Key takeaways

  • An onion site is only reachable through Tor — a normal browser cannot resolve a .onion address.
  • The .onion address is the site's public key, so it proves you reached the right site without a certificate authority.
  • Tor hides your location, but it does not make you anonymous if you log in, download files or reveal who you are.

Type a normal web address into a browser and it looks up an IP address, connects to a server, and shows you a page. Type a .onion address into the same browser and nothing happens — because onion sites do not live on the ordinary internet at all. They live inside Tor, and that changes almost everything about how they work.

What is an onion site?

An onion site — also called an onion service, and formerly a hidden service — is a website or service that is only accessible through the Tor network, at an address ending in .onion. It is not in the internet's DNS system, and it has no public IP address you can look up.

The .onion suffix is a special-use top-level domain: it is not in the DNS root, but Tor clients understand it. With the right software installed, a browser can reach a .onion address by sending the request through Tor. Without Tor, the address means nothing.

Onion sites are used for many things: news organizations running a SecureDrop for whistleblowers, email providers such as Proton offering a Tor version of their service, libraries and archives resisting censorship, and — yes — criminal marketplaces. The technology is neutral; the use is what varies.

What does a .onion address look like?

A modern .onion address is 56 mostly random-looking characters followed by .onion, for example l5satjgud6gucryazcyvyvhuxhr74u6ygigiuyixe3a6ysis67ororad.onion — an example from the Tor specification. Older version 2 addresses were 16 characters, but they were removed from the network in 2021.

The length is not an accident. The address encodes the site's ed25519 public key, plus a version byte and a checksum, in base32. That has two consequences the Tor Project spells out in its protocol specification: the connection is encrypted and authenticated end to end with no certificate authority involved, and losing the key file means losing the address for good.

Because the address is derived from the key, nobody assigns it and nobody can buy a memorable one — although a site can generate many key pairs until it finds one that starts with a recognizable word, which is how some well-known onion addresses begin with a brand name.

How does an onion site work?

An onion site never accepts an inbound connection from the internet. Instead, it builds circuits out through Tor and waits for visitors to meet it in the middle. That design is what hides the server's location.

How a visit to an onion site works YouTor Browser picksa rendezvous relay Rendezvous relaythe meeting pointneither side chose Onion sitebuilds a circuit outto the rendezvous Before that: the site publishes a signed descriptorlisting its introduction points, so your browser can ask to be introduced. Result: six hops end to endNo exit relay, no IP address on either side, encrypted end to end. The introduction points never carry your data; the rendezvous relay carries it but cannot read it.
How a visitor reaches an onion site: introduction, rendezvous, and a joined circuit. Illustration by Cysoro.
  1. The site picks introduction points. It chooses a few Tor relays, builds circuits to them, and tells them to forward introduction requests.
  2. It publishes a descriptor. A signed document listing those introduction points is uploaded to directory servers, indexed by the onion address.
  3. You fetch the descriptor. Your Tor client derives the right directory from the address and downloads the descriptor to learn the introduction points.
  4. You pick a rendezvous point. You choose a Tor relay at random and build a circuit to it, then ask an introduction point to pass the rendezvous details to the site.
  5. The site connects out. It builds a circuit to the rendezvous point and completes a cryptographic handshake. The rendezvous relay joins the two circuits, and traffic flows — six hops end to end, encrypted.

Nobody in the path sees both ends. The introduction points never carry your data, and the rendezvous relay carries encrypted data without knowing who either party is.

How is an onion site different from a normal website?

The differences start before the first byte is sent, and they matter most for what an observer can learn.

Normal websiteOnion site
AddressDomain name resolved by DNS56-character .onion address, derived from a public key
Server locationPublic IP address, visible to anyoneHidden — the server never accepts inbound connections
How you reach itAny browser, direct connectionOnly through Tor, usually Tor Browser
Exit relayYes, when visited over Tor — the exit sees the destinationNo exit relay; circuits meet at a rendezvous relay
EncryptionHTTPS with a certificate authorityEnd-to-end encryption built into Tor; no certificate authority needed
AuthenticationCertificate proves the site's identityThe address itself proves it — it is the public key
CensorshipCan be blocked by DNS or IPHarder to block: no DNS record or IP to block

Visiting a normal site over Tor still hides your IP address from the site, but the exit relay knows which site you visited. With an onion site there is no exit relay at all, which is why journalists, whistleblowers and people in censored countries prefer them.

How do I visit an onion site safely?

Visiting an onion site is straightforward, but doing it safely takes a little care. The official route is the only one to trust.

  1. Download Tor Browser from the Tor Project's website. It is a modified Firefox configured to route everything through Tor. Never download it from a third-party site. How-To Geek's guide to accessing .onion sites gives the same advice: get Tor Browser from the Tor Project, not a proxy.
  2. Open Tor Browser and connect. It connects to the Tor network automatically. This can take a few seconds.
  3. Type the full .onion address into the address bar. Get the address from a source you trust — the organization's own website, or its Onion-Location header, which advertises its onion version. Tor Browser shows an onion icon in the address bar when you are on an onion site.
  4. Do not log in with a real identity. Logging into an account tied to your name, or entering personal details, undoes the anonymity Tor provides.
  5. Do not download and open files from onion sites. Documents and media can contain trackers that reveal your real IP address when opened outside Tor Browser.
  6. Keep Tor Browser updated. Updates patch the vulnerabilities that can de-anonymize users.
Never use a Tor proxy siteSome websites offer to fetch onion sites for you without Tor. The proxy can see everything you do, and the site you visit loses its anonymity too. Use Tor Browser itself.

You can check what your connection looks like from the outside with our free what-is-my-IP tool — over Tor, it should show a Tor exit relay, not your real address.

What are onion sites actually used for?

The criminal uses get the headlines, but the legitimate uses are large and well documented. Many exist precisely because the people running them cannot safely run a normal website.

  • Whistleblowing platforms. News organizations run SecureDrop onion sites so sources can send documents without revealing who they are.
  • Journalism under censorship. Outlets such as the BBC and The New York Times maintain onion versions so readers in censored countries can reach them.
  • Private email and messaging. Proton and other privacy services offer onion addresses so users can reach them even where the normal site is blocked.
  • Libraries and archives. Projects that mirror censored books and documents use onion sites to stay reachable.
  • Internal services. Companies run onion services for internal tools, because the address doubles as authentication and no port needs opening to the internet.

The dark web is a small slice of the deep web — the part of the web search engines do not index — and onion sites are its main addresses. But the deep web also includes your webmail, your bank account and your company intranet: perfectly ordinary pages that simply sit behind a login.

What does an onion site not protect you from?

Tor is powerful, but it is not magic. These are the limits people most often misunderstand.

What an onion site protects — and what it does not Tor does protectYour IP address from the site.The site's location from you.Your traffic from local snooping. Tor does not protectYou, if you log in as yourself.You, if you open downloaded files.You, if the site itself is malicious. The biggest risk is not the network — it is the siteOnion sites have no app-store review and no reputation system. A .onion address proves you reached the sitewhose key matches the address — it says nothing about whether that site is honest, safe or legal.
Tor hides network location; it cannot verify that a site is trustworthy. Illustration by Cysoro.
  • Your own behavior. Logging in with a real identity, reusing a username, or telling a site who you are reveals you regardless of Tor.
  • Malicious sites. A .onion address proves you reached the site whose key matches the address. It says nothing about whether that site is honest, safe or legal — and onion sites have no app-store review.
  • Downloaded files. A document that loads remote content when opened can reveal your real IP address outside Tor.
  • Badly run servers. An onion site operator who misconfigures their server can leak its real IP address, which is how several criminal sites were found.
  • Endpoint compromise. If your device is infected with malware, Tor cannot protect what the malware sees.

Some onion sites also require authentication: an authenticated onion service asks the client for a token before access, so only invited users can enter. That is how private onion services stay private even if their address leaks.

Can I run my own onion site?

Yes, and it is simpler than most people expect. Install Tor, add two lines to its configuration file — a directory for the service's keys and a port mapping to your local web server — restart Tor, and it writes your new .onion address to a file.

There is no domain to buy, no DNS record to publish and no port to open on your firewall, because the service only ever makes outbound connections.

The hard part is keeping it hidden. The usual failures are the site's own configuration pointing back at the operator: a web server that reveals its real hostname, an application that loads resources from the public internet, or logs that record the wrong details.

If you run one, bind the web server to localhost only and test it from a separate Tor circuit before telling anyone the address. You can confirm the address is not leaking into public DNS with our free DNS lookup tool.

The bottom line

An onion site is a normal website with its location removed: reachable only through Tor, addressed by its own public key, and encrypted end to end without a certificate authority. That makes it a strong tool for privacy, journalism and censorship resistance — and a tempting one for criminals, which is why the headlines skew dark.

If you visit one, use Tor Browser from the Tor Project, get the address from a source you trust, and remember that Tor hides where you are, not who you choose to be. You can see what the internet sees of your connection right now with the free what-is-my-IP tool.

Frequently asked questions

What is an onion site in simple terms?

It is a website that only exists inside the Tor network. Instead of a domain name and a public IP address, it has a long .onion address, and you can only reach it using Tor Browser or other Tor software.

Is an onion site the same as the dark web?

Not exactly. The dark web is the part of the web reachable only with special software such as Tor, and onion sites are its main addresses. But many onion sites are ordinary, legal services — news sites, email providers and whistleblowing platforms — that use Tor for privacy.

How do I visit an onion site?

Download Tor Browser from the Tor Project's website, open it, and type the full .onion address into the address bar. Do not use a proxy website that promises Tor access without Tor, because the proxy can see what you do.

Are onion sites illegal?

No. Running or visiting an onion site is legal in most countries, including the US and UK. What matters is what you do there — buying illegal goods or viewing illegal content is illegal whether it happens on Tor or on the open web.

Can an onion site be traced?

Tor is designed to make tracing hard, but it is not a guarantee. Mistakes such as logging in with a real identity, downloading files that phone home, or running a badly configured server can reveal who you are. Law enforcement has also taken down criminal onion sites through operational mistakes by their operators.

Why is a .onion address so long?

A version 3 .onion address is 56 characters because it encodes the site's ed25519 public key, a version byte and a checksum in base32. The address is the key, which is what lets Tor authenticate the site without a certificate authority.

Do onion sites use HTTPS?

They do not need it. Traffic between you and an onion site is already encrypted end to end by Tor, and the address itself authenticates the site. Some onion sites still offer HTTPS, and Tor Browser shows an onion icon in the address bar when you are on one.

What is the difference between an onion site and a normal site visited over Tor?

When you visit a normal site over Tor, your traffic leaves Tor through an exit relay, which can see the destination. With an onion site, there is no exit relay: your circuit meets the site's circuit at a rendezvous relay, so neither side learns the other's IP address.

Sources

  1. Tor Project — Protocol overview, Tor Specifications (rend-spec)
  2. How-To Geek — How to Access .onion Sites (Also Known as Tor Hidden Services)
  3. Wikipedia — .onion
  4. SSD Nodes — Host an .onion site on your VPS
  5. Mikrotik Dojo — The dark web isn't one place: Tor, the other networks, and how onion works
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against the Tor Project's onion service protocol specification and the Tor manual's onion services documentation.

How we write and fact-check →

Free tools for this topic

No account needed.

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free