Online Privacy

Tor Explained

How Tor's layered relays hide who is talking to whom, what onion services are, and where the protection ends.

Key takeaways

  • Tor routes traffic through a guard, a middle relay and an exit, each knowing only its neighbors.
  • The name "onion routing" comes from the layers of encryption that are removed one relay at a time.
  • Tor Browser matters as much as the network, because it limits cookies, fingerprinting and cross-site linking.
  • Logging in, opening risky files or being watched at both ends of a connection can still expose you.

Tor is a free network that hides the link between you and the sites you visit by sending your traffic through three volunteer-run relays, wrapped in layers of encryption. No single relay learns both who you are and where you're going. Most people use it through Tor Browser, which is built to make its users look alike.

It's stronger for anonymity than a single VPN, and slower and more demanding. It also can't save you from identifying yourself.

Why anonymity needs more than encryption

Encryption hides what you say. It doesn't hide who you're talking to. Anyone carrying your traffic can still see source and destination addresses, timing and size, which is often enough to be revealing.

A VPN moves that knowledge to one company. Tor splits it among several independent parties so that none of them holds the whole picture. The idea grew out of onion routing research at the US Naval Research Laboratory, and the software is now developed by the nonprofit Tor Project with a community of volunteers.

How a circuit works

Your Tor client downloads a signed list of relays, maintained through a set of trusted servers called directory authorities. It then builds a circuit of three relays and negotiates a separate key with each one.

Before sending data, the client encrypts it three times. The first relay peels off one layer and learns only where to pass it next. The second does the same. The third removes the last layer and sends the request to the destination.

A request through a Tor circuit
You Guard relay Middle relay Exit relay Three layers of encryption 1 Guard sees your address, not the site Two layers remain 2 One layer remains 3 Exit sees the site, not your address Reply starts back 4 You remove all layers 5 You Guard relay Middle relay Exit relay Three layers of encryption 1 Guard sees your address, not the site Two layers remain 2 One layer remains 3 Exit sees the site, not your address Reply starts back 4 You remove all layers 5

The three relays

The guard (or entry) relay sees your real address. Your client keeps the same guard for an extended period. That seems odd, but constantly picking new ones would raise the chance that you eventually choose a hostile one.

The middle relay only knows the relays on either side.

The exit relay connects to the ordinary internet. The destination sees the exit's address. The exit can see where you're going, and can read or alter anything not otherwise encrypted. That's why HTTPS matters inside Tor too.

Circuits change over time, and Tor Browser uses separate circuits for separate sites, so two sites can't easily link you by exit address.

Tor Browser does half the work

Tor Browser is a modified version of Firefox. It's designed so users resemble one another and so little persists between sessions. It isolates data by site, resists many fingerprinting techniques, and clears browsing data when you close it.

To keep that protection:

  • Use Tor Browser as delivered, and don't point your everyday browser at the Tor network.
  • Don't add extensions, which can make you stand out or leak data.
  • Raise the security level setting if you're visiting sites you don't trust. Some features will stop working.
  • Keep it updated.
  • Download it from the Tor Project's official site, and verify the signature if your risk is high.
What keeps a Tor session private
Your behavior No real-name logins, careful downloads Tor Browser Uniform appearance, isolated site data Encrypted sites HTTPS or onion services end to end Relay circuit No single relay sees both ends Device Updated and free of spyware Your behavior No real-name logins, careful downloads Tor Browser Uniform appearance, isolated site data Encrypted sites HTTPS or onion services end to end Relay circuit No single relay sees both ends Device Updated and free of spyware

Onion services

An onion service is a site reachable only through Tor, with an address ending in .onion. The address is derived from the service's public key, which is why current addresses are long strings of letters and numbers.

Neither side learns the other's network address. The two meet at a rendezvous point inside the network, and traffic never leaves through an exit relay. The address itself verifies you're talking to the holder of that key, provided you got the correct address from a trustworthy place. Look-alike addresses are a common trick.

Onion services host many things: news organizations' mirrors for readers facing censorship, secure tip submission systems, privacy-minded versions of ordinary services and also illegal markets and scams. The technology is neutral about content; the law isn't, and activity that's illegal elsewhere is illegal there.

Who uses it and why

People use Tor to read blocked news, to research sensitive subjects without a profile forming, to communicate with journalists, to escape tracking by an abuser or to test how a website looks from outside. In many countries using it is lawful. Some governments block or restrict it, so check local law and consider your risk before using it somewhere hostile.

Policy arguments about anonymity run both ways. Supporters stress protection for dissidents, reporters and ordinary privacy. Critics point to abuse that anonymity can shelter and the difficulty it creates for investigators.

Blocking and bridges

Public relays are listed openly, so a network can block them. Bridges are unlisted entry relays, and pluggable transports such as obfs4 or Snowflake change how the traffic looks so it's harder to identify. Tor Browser offers these in its connection settings, with menu details varying by version.

Schools and employers may prohibit Tor on their networks. Using it against policy can have consequences even where it's legal.

Tor compared with other tools

Question Private window Single VPN Tor Browser
Hides your address from sites No Yes Yes
One party sees both you and your destination Provider can VPN operator can No single relay
Resists fingerprinting by design Limited No Yes, substantially
Speed Normal Usually close to normal Noticeably slower
Covers all apps No Usually No

A private window only tidies up your device. A VPN gives you one trusted intermediary. Tor is built on the assumption that you shouldn't have to trust any single one.

A worked scenario

Say someone wants to research a sensitive health question without it being connected to their name or home address.

In Tor Browser, the home provider sees a connection to a guard relay and nothing about the topic. The health site sees a request from an exit relay, from a browser that looks like other Tor users'. No ordinary advertising cookie from last week is present.

Now suppose the same person signs in to their personal email in that session to send themselves a link. The email service knows who they are. The session may not directly hand that identity to the health site, but anything shared between the two, such as a unique link or pasted text, can reconnect them. And if they download a document and open it in a desktop program that loads remote content, that program connects over the ordinary network.

The technology did its job in each case. The gaps came from what was done with it, which is why anonymity depends on habits as much as software. Decide before starting which identity, if any, a session belongs to, and keep it to that.

Trusting the relays

Because anyone can volunteer a relay, some may be hostile. The design assumes this. A bad middle relay learns little. A bad exit can watch or tamper with unencrypted traffic. The serious case is one adversary controlling or observing both the entry and the exit of the same circuit.

The network defends against that with long-lived guards, rules that keep related relays out of the same circuit when their operators declare the relationship, and monitoring that removes relays behaving badly. None of these is a guarantee. Researchers study correlation and traffic analysis continually, and the software changes in response, which is one more reason to stay updated.

You don't pick relays yourself in normal use, and doing so by hand tends to make you more distinctive.

Where protection ends

Be clear about these limits.

  • You identify yourself. Signing in to a personal account, or reusing a writing style, handle or payment detail, links you.
  • End-to-end timing. An observer who can watch both your connection and the destination may correlate patterns.
  • Visible use. Your local network can usually tell you're using Tor unless a transport disguises it.
  • Files. A downloaded document or media file opened outside the browser may contact servers directly, revealing your address. Photo metadata can also identify you if you upload pictures.
  • Compromised devices. Spyware sees everything before Tor does.
  • Other apps. Only traffic you send through Tor is covered. Tor carries TCP streams, so many UDP applications don't work.

Living with the trade-offs

Expect slower page loads, since data takes a long route through shared volunteer capacity. Many sites show extra verification challenges or refuse exit addresses. Large downloads and file-sharing strain the network, and some file-sharing programs leak your real address anyway.

For people with serious safety needs, a dedicated operating system that routes everything through Tor, such as Tails, reduces mistakes. It still requires careful habits and ideally advice from a digital security organization that knows your situation.

Tor, VPN or both?

For everyday privacy from a coffee shop network, a VPN is faster and breaks less. For separating your identity from your destinations, Tor's design is stronger. Combining them changes who sees what, and a poor combination can reduce privacy or create a false sense of it. Unless you understand the specific reason, follow the Tor Project's own guidance.

Common questions

Is using Tor illegal?

In many countries it isn't, though some restrict it. What you do through it is subject to the same laws as anything else.

Can I run a relay at home?

You can contribute. Middle and bridge relays are the usual home options. Running an exit relay brings abuse complaints and legal exposure, so read the project's guidance first and don't run one from a home connection.

Does Tor hide me from the websites I log in to?

It hides your network address. The account still knows it's you, and may flag the unfamiliar location as suspicious.

Written for 4Internet with AI writing tools and not reviewed line by line by a person. Check anything you rely on with the maker, provider or standard concerned. Report an error.

Keep reading

All 45 articles in Online Privacy →

Latest news on this topic