What Is Onion Routing, and How Does It Work? (Explained Clearly) - Tor Basics
Learn how onion routing uses layered encryption and Tor relays to hide your IP address, how it differs from a VPN, and where its privacy protection ends.
👉 Lock down your connection with NordVPN here: NordVPN
You’ll learn what onion routing is, how Tor uses layered encryption and relays to hide your IP address, and what it can’t protect. Understand the differences between Tor and a VPN so you can protect your browsing without mistaking privacy for complete anonymity.
Chapters: 0:00 Intro 0:11 What is onion routing, and why does it matter? 0:53 How do onion routing’s encryption layers work? 1:39 Who can see your browsing when you use Tor? 2:52 Is onion routing the same as the dark web? 3:28 What can onion routing not protect you from? 4:19 Outro
Affiliate notice: Some links may earn a commission. Thanks for your support.
Key Takeaways
Onion routing makes connections harder to trace by distributing traffic across relays with layered encryption, separating knowledge of your IP address from your destination.
A typical Tor connection uses three relays: an entry guard, middle relay, and exit relay. Websites normally see the exit relay’s IP address instead of yours.
HTTPS still matters with Tor. It protects browser-to-website content from exit relays; unencrypted HTTP does not. See the Tor Project’s explanation.
IP privacy is not complete anonymity. Personal logins, identifying details, malware, and traffic-correlation attacks can still reveal information. Your provider may also recognize that you use Tor.
Tor Browser adds browser-level protections, but it does not automatically protect every application on your device. External apps and downloaded files can make connections outside Tor.
Onion services avoid ordinary exit relays and help conceal both visitor and hosting locations, but a .onion address does not guarantee a trustworthy site or safe downloads.
👉 Put connection-level privacy into practice with NordVPN to encrypt VPN-routed traffic and mask your public IP, an added privacy layer, not complete anonymity or a replacement for safer browsing.
Onion routing is a way to make internet connections harder to trace by sending traffic through multiple servers with layers of encryption. Each server handles only part of the route, separating knowledge of where a connection started from knowledge of where it is going.
Tor is the best-known network that uses onion routing. It can hide your original IP address from websites and make it harder for your internet provider to see your browsing destinations. But it does not make every action anonymous, protect every application, or guarantee that a website is safe.
Understanding that distinction helps you use privacy tools without expecting more protection than they provide.
What Is Onion Routing?
Onion routing is a network privacy technique built around two ideas:
FAQ
Quick answers to the questions people usually ask about this topic.
Do I need to run a Tor relay to use onion routing?
No. Tor Browser connects to relays operated by volunteers; you do not need to host a relay or let other people’s traffic pass through your device. Running a relay is a separate, optional contribution to the network.
Does Tor give me a new IP address every time I open a page?
No. Tor can reuse circuits for multiple requests, so refreshing a page does not necessarily change the exit IP address a website sees. Even when the exit changes, an account login or other identifying information can still connect your activity to you.
Should I install privacy extensions in Tor Browser?
Generally, avoid adding extensions. Extra extensions can change your browser’s observable behavior, make its fingerprint more distinctive, or introduce security risks. Tor Browser already includes coordinated privacy protections. Follow the Tor Project’s safety guidance rather than assuming more extensions mean more anonymity.
Is a file downloaded through Tor safe to open?
Not necessarily. Onion routing protects the connection, not the file’s contents. A downloaded document may contain malware or contact external servers when opened in another application, potentially exposing your ordinary IP address. Avoid unexpected files, keep your software updated, and remember that opening a file offline does not make malicious content harmless.
Should I ignore HTTPS certificate warnings when using Tor?
No. Tor is not a substitute for a correctly authenticated HTTPS connection. Certificate warnings can indicate that your browser cannot verify the website’s identity; do not bypass them to submit passwords or sensitive information. The Tor Project’s HTTPS explanation explains how HTTPS protects content as it passes through an exit relay.
What if I want everyday connection privacy without using Tor Browser?
A VPN can help reduce network-level exposure in your everyday apps by encrypting VPN-routed traffic and showing websites the VPN server’s IP address instead of your own. If that matches your needs, explore NordVPN as a practical next step for your phone and computer. You are shifting trust to the VPN provider, not gaining complete anonymity, blocking all tracking, or replacing safer browsing habits.
Some links may earn a commission. Thanks for your support.
Watch in the video playerOpen the dedicated player for this video.
Layered encryption: Traffic is protected with separate encryption layers associated with different relays.
Distributed knowledge: No single relay should learn both your original IP address and your final destination simply from its position in the route.
A relay is an intermediary server that passes traffic onward. Rather than connecting directly to a website, your connection travels through several relays first.
For a typical Tor connection to an ordinary website, the route looks like this:
The website normally sees the exit relay’s IP address instead of yours.
Why encryption alone is not enough
Encrypting a connection protects its contents, but it does not necessarily conceal the relationship between its endpoints.
These connection details are called metadata. They can include who is connecting, where traffic is going, when communication happens, and how much data moves.
For example, an observer might be unable to read an encrypted message but still learn something from the service you contact. Onion routing addresses that exposure by making the origin and destination harder to link.
How Does Onion Routing Work?
Think of a message placed inside three nested, locked envelopes. Each courier can open only the envelope addressed to them, revealing where to send the remaining package.
The analogy explains the division of knowledge. Real Tor uses cryptographic circuits and structured units of data rather than literal envelopes.
1. Tor builds a circuit
A circuit is a protected path through the Tor network. For access to an ordinary website, it typically contains three relays.
The Tor client learns about available relays and establishes separate cryptographic keys with the selected relays. Those keys protect traffic as it moves through the circuit.
2. Each relay processes its encryption layer
The three relays have different roles:
Relay
What it does
What it normally knows
Entry guard
Receives your connection and forwards traffic into Tor
Your connecting IP address and the next relay
Middle relay
Passes traffic between the guard and exit
The adjacent relays
Exit relay
Connects to the ordinary website
The destination, but not your original IP address
Each relay processes its own encryption layer before forwarding traffic. Responses travel back through the circuit, with the client handling the returning encryption layers.
Tor deliberately reuses a limited set of entry guards rather than constantly choosing a new first relay. This reduces opportunities to encounter an attacker-controlled entry point.
3. The exit connects to the website
The exit relay makes the connection to the public website. From that website’s perspective, the connection comes from the exit’s IP address.
However, removing the final onion-routing layer does not remove independent HTTPS encryption.
If you visit an HTTPS website, the browser-to-website connection remains encrypted as it passes through the exit. An exit relay cannot simply read passwords protected by a correctly authenticated HTTPS connection. Unencrypted HTTP traffic does not have that protection.
For a typical Tor Browser connection to an HTTPS website, visibility is divided as follows:
Observer
What they can normally see
What they normally cannot see
Internet provider or local network operator
Your connection to a Tor entry point, traffic timing, and volume
Your final browsing destination and HTTPS content
Entry guard
Your connecting IP address
The final website and application content
Middle relay
The relays immediately before and after it
Your original IP address and final website
Exit relay
The destination connection and traffic metadata
Your original IP address and HTTPS-protected content
Website
The exit IP address, requests, and information you submit
Your original IP address through the normal Tor connection
These are the intended properties of a properly functioning connection, not guarantees against every attack.
Two distinctions are especially important:
Your provider may recognize Tor use. Public entry-relay addresses are known. Bridges and traffic-obfuscation tools can make identification or blocking harder, but hiding Tor use is a separate challenge from hiding browsing destinations.
A website can identify you without your IP address. If you sign into your personal account, the website knows which account you are using, even while Tor continues to hide your original network address.
Onion Routing, Tor, and Tor Browser Are Different
These terms are related, but they are not interchangeable:
Onion routing is the underlying communication technique.
Tor is a network and software implementation of that technique.
Tor Browser combines access to Tor with browser-level privacy protections.
Those browser protections matter because changing your visible IP address does not eliminate cookies, identifying logins, or browser fingerprinting.
Fingerprinting attempts to recognize a browser through its observable characteristics. Tor Browser includes defenses designed to reduce how distinctive users appear. Onion routing alone does not provide those browser-level protections.
Onion Routing vs. VPNs and Private Browsing
Tor, VPNs, HTTPS, and private browsing address different privacy problems.
A conventional VPN sends traffic through a provider you trust. Tor instead distributes knowledge across multiple relays.
For everyday browsing, a VPN can reduce visibility for local-network observers and your internet provider. That is useful connection-level protection, but it is not the same as Tor’s distributed design.
Onion routing is not another name for the dark web. Tor can reach ordinary websites as well as onion services, commonly recognized by addresses ending in .onion.
An ordinary website connection leaves Tor through an exit relay. An onion-service connection works differently: circuits from the visitor and service meet through a rendezvous point, without an ordinary exit connection to a public website.
This helps protect both the visitor’s network location and the service’s hosting location. Onion services also provide encryption and cryptographic authentication tied to their addresses.
However, authentication is not an endorsement. A valid onion address does not prove that its operator is honest or its downloads are safe.
Onion routing reduces particular kinds of exposure. It does not erase every identifying clue.
Identifying accounts and personal information
Logging into a personal account, entering your name, or submitting identifying details can reveal who you are to the recipient.
A different IP address does not cancel information you voluntarily provide.
Traffic correlation
An observer able to watch both ends of a connection may compare timing and traffic volume to infer a relationship. This is called traffic correlation.
The observer does not necessarily need to decrypt the content or control every relay. This is one reason “harder to trace” is more accurate than “completely untraceable.”
Malware and connections outside Tor
Tor Browser does not automatically route every application on your device through Tor.
External applications and downloaded documents may make separate connections that expose information. A compromised device can also reveal data outside the routing system’s protection.
Unsafe websites and downloads
Hiding your IP address does not make a phishing page, fraudulent service, or malicious file harmless. Network privacy and destination trust are separate issues.
Slower browsing and access restrictions
Additional relays, network distance, and congestion can increase latency or reduce speed. Shared exit addresses can also trigger CAPTCHAs or website restrictions.
These are practical trade-offs, not proof that Tor is failing.
Using Privacy Tools With Realistic Expectations
For ordinary users, Tor Browser’s safety guidance is a useful starting point: understand what the browser protects, keep identifying activity separate where needed, and be cautious with external applications and files.
Onion routing helps separate your connection’s origin from its destination. Whether you remain identifiable also depends on your accounts, device security, browser behavior, and the capabilities of whoever is observing.
For everyday connection-level protection, a VPN offers a different option: encrypting VPN-routed traffic and showing websites a VPN server’s address instead of your own. You are trusting the VPN provider, not buying complete anonymity or replacing safer browsing habits.
👉 Try NordVPN to encrypt VPN-routed traffic and mask your public IP on your phone and computer.
Affiliate notice: Some links may earn a commission. Thanks for your support.
Affiliate link — I may earn a commission at no additional cost to you.
Jay's Recommendation
Turn privacy knowledge into everyday protection
The series explains online privacy. NordVPN helps you put it into practice with encrypted connections, IP masking, and apps for everyday devices. Reduce network-level exposure without building your own setup. It’s an added privacy layer, not complete anonymity or a replacement for safer browsing habits.
🔒Encrypted connectionsHelp shield VPN-routed traffic from observers on shared Wi-Fi.
👁Less ISP visibilityLimit what your provider can see about browsing carried through the VPN.
🎭Masked public IPShow websites the VPN server’s address instead of your own.
📱Privacy across devicesPut connection-level protection to work on your phone and computer.