No, the dark web is not illegal in the United States. Downloading the Tor browser and visiting .onion sites breaks no federal law. What is illegal is what you do there: buying drugs, weapons or stolen data, possessing exploitative material, hiring someone for a crime, or selling illicit goods can lead to federal prosecution, even though the browsing itself was legal.
Key takeaways
- Simply visiting the dark web is legal in the US and most Western countries; the law targets conduct, not the browser you use.
- Buying drugs, stolen data or weapons, or possessing exploitative material on the dark web are federal crimes with long sentences.
- In some countries, including China, Russia and Iran, using Tor itself can be restricted or punished — check local law before you travel.
The short answer surprises most people: simply visiting the dark web is not illegal in the United States. No federal law bans downloading Tor or browsing .onion sites. The trouble starts with what you do once you are there — and the line between a legal visit and a federal case is thinner than many people think.
Is the dark web illegal?
No. In the United States, accessing the dark web is not illegal. The US Department of Justice's own Inspector General states plainly that "while accessing the dark web is not illegal, dark web sites are often used to engage in illegal activities." The law punishes conduct, not the software you use to browse.
That distinction matters. Tor, the browser most people use to reach the dark web, is free, open-source software maintained by the nonprofit Tor Project. It grew out of onion routing research at the US Naval Research Laboratory in the 1990s, and it is used every day by journalists, researchers, activists and ordinary people who want private access to the internet.
The same is true in the UK, the EU, Canada and Australia. But the picture changes abroad: China, Russia, Iran, Belarus and North Korea have all moved to block Tor or penalize its use. If you travel, the same download that is legal at home can be a problem at your destination.
What is the dark web, and how is it different from the deep web?
The dark web is a small, intentionally hidden part of the internet that you cannot reach with a normal browser. It needs special software, most commonly Tor, and its sites use .onion addresses instead of .com. Tor routes your connection through several encrypted relays so no single relay knows both who you are and where you are going.
People often confuse it with the deep web, but the two are very different in size and character. The deep web is simply everything search engines do not index: your email inbox, your online banking, a company's internal wiki, a database behind a login page. Most of the internet is deep web, and almost all of it is completely ordinary.
The dark web is a tiny slice of the deep web. It hosts a mix of content: privacy-focused forums, whistleblowing platforms, censored news sites — and marketplaces selling drugs, stolen data, weapons and hacking services. The technology is neutral. The content is not.
Why is the dark web itself legal?
Three reasons explain why no US law bans the dark web outright. First, the technology has legitimate uses that lawmakers and courts recognize: journalists protecting sources, people in censored countries reaching blocked news, researchers studying crime, and ordinary users avoiding tracking.
Second, the laws that do apply target specific acts. The Computer Fraud and Abuse Act covers unauthorized access to protected computers, not anonymous browsing. The Electronic Communications Privacy Act covers interception of communications and unauthorized access to stored data. Neither criminalizes the browser you use.
Third, Tor itself is a US-born, publicly funded idea. Onion routing was developed at the Naval Research Laboratory, the Tor Project became a nonprofit in 2006, and its code has been open source since the network launched in 2002. Banning it would mean banning a privacy tool built by the US government itself.
What is illegal on the dark web?
Almost everything that is illegal offline is illegal on the dark web too. Anonymity does not change the underlying law; it only makes enforcement harder. These are the crimes federal prosecutors most often charge:
| Activity | What the law says | Typical exposure |
|---|---|---|
| Buying or selling drugs | Distribution of controlled substances under federal drug law | Years in federal prison, depending on drug and quantity |
| Buying or selling stolen data | Identity theft and fraud involving identification documents | Possessing 5+ stolen identity documents with intent to use them unlawfully is a felony carrying up to 15 years |
| Weapons trafficking | Federal firearms and export laws | Long federal sentences, especially for unlicensed sales |
| Exploitative material | Federal child exploitation statutes | Some of the longest sentences in federal law |
| Hacking services and malware | Computer Fraud and Abuse Act | Prison and fines for unauthorized access and fraud |
| Counterfeit documents and money | Counterfeiting and fraud statutes | Federal felony charges |
| Murder-for-hire and threats | Federal violent crime and threat statutes | Severe prison terms; many advertised services are also scams or police stings |
Prosecutors also routinely stack charges. One investigation can produce drug, fraud, money laundering and conspiracy counts from the same set of transactions, and using the dark web deliberately can add sentencing enhancements for concealment.
Cryptocurrency does not help as much as buyers hope. Exchanges must register as money services businesses and follow anti-money laundering rules, and investigators have repeatedly traced Bitcoin payments through the blockchain to real people.
How do police catch people on the dark web?
Tor is strong, but it is not a guarantee of anonymity. The FBI's dark web work is split across several units, including its Hi-Tech Organized Crime Unit, which targets drug trafficking, and its Child Exploitation Operational Unit. A 2020 Inspector General audit found the FBI had no single bureau-wide dark web strategy, but its operational units run individual investigative strategies — and they have had major successes.
The methods are practical rather than magical. Agents run undercover operations, posing as buyers, sellers or marketplace administrators. They seize marketplaces and run them for weeks to collect addresses and messages. They exploit mistakes: a vendor who reuses a username, a buyer who ships to a home address, a server misconfiguration that leaks a real IP address.
The biggest takedowns tell the story. Silk Road, the first famous dark web marketplace, was seized in 2013 and its founder sentenced to life in prison. Its successor, Silk Road 2.0, and later AlphaBay and Hansa were also seized — in the Hansa case, Dutch police secretly ran the marketplace for weeks after taking it over, collecting evidence on thousands of users.
What if you stumble onto something illegal by accident?
This is the scenario people worry about most, and the law has a clear answer: accidental exposure is not a crime. Federal possession statutes generally require that a person "knowingly" possess the prohibited material. Landing on a page by mistake, then leaving immediately, is not knowing possession.
What turns an accident into a problem is what you do next. Do not download, save, screenshot or share what you found. Do not keep browsing the site out of curiosity. Close the tab, clear the session if you can, and do not return.
If you believe you have found exploitative material involving children, report it to the National Center for Missing and Exploited Children at report.cybertip.org — and do not keep a copy as evidence.
For businesses, the rule is simpler: if an employee's work machine touches the dark web, treat it as a security incident. Isolate the device, preserve logs, and let your security team or IT provider investigate before anyone browses further.
What are the risks of visiting the dark web, even legally?
Legality is not the same as safety. The dark web carries risks that have nothing to do with the police. Malware is common: malicious .onion sites, booby-trapped downloads and fake versions of Tor itself have all been used to infect visitors. A single careless download can hand an attacker your files or your credentials.
Scams are everywhere. Fake marketplaces take payment and never deliver. "Hitman" services are almost always frauds — or law enforcement stings. Phishing pages impersonate real marketplaces to steal logins and cryptocurrency.
There is also an employment and reputation risk. Many employers monitor network traffic, and Tor traffic on a work device is a red flag even if nothing illegal happened. Some internet providers and universities also flag it. And if your data is ever part of a breach, a history of dark web visits can complicate the story in ways you did not expect.
If you have a legitimate reason to use Tor — research, journalism, or bypassing censorship — use the official Tor Browser from the Tor Project, keep it updated, never download files from .onion sites, and never log in to personal accounts over Tor. You can check whether your own connection is leaking identifying information with our free WebRTC leak test.
What should businesses do about the dark web?
For a small business, the dark web matters in two ways: your data may already be for sale there, and your staff may be exposed to it. Stolen credentials are one of the biggest dark web commodities, and breached employee passwords are routinely resold for use in credential-stuffing attacks.
Start with the basics. Enforce unique passwords and phishing-resistant MFA so a leaked password alone is not enough to get in. Monitor for breached credentials — you can test whether a password already appears in known breaches with our pwned password checker.
And make sure your email domain is protected: our guide to what DMARC is explains how to stop attackers sending email as your company.
Write a clear acceptable-use policy: no Tor or dark web browsing on company devices or networks, no exceptions without written approval from security leadership. Block Tor exit nodes and known .onion gateway traffic at the firewall where you can. If you handle client data under a contract or regulation, document the control — auditors and cyber insurers both ask about it.
Is the dark web illegal in the UK, EU and other countries?
In the UK and across the EU, using Tor is legal, just as in the US. The same principle applies: the tool is lawful, and the crimes committed with it are prosecuted under ordinary criminal law — drug trafficking, fraud, child exploitation and computer misuse.
The exceptions are countries that treat anonymity itself as a threat. China, Russia, Iran, Belarus and North Korea have all taken steps to block Tor or punish its use, usually under laws about unapproved encryption or access to banned content. In those places, connecting to Tor can bring fines, detention or worse.
That matters for travelers and remote workers. A journalist or researcher who relies on Tor at home should not assume the same protection abroad. Check the local law, consider whether the trip is worth the risk, and get legal advice before you travel with anonymity tools installed.
The bottom line
The dark web is not illegal — the crimes committed on it are. In the US, you can download Tor and browse .onion sites without breaking any law, and millions of people do so for legitimate reasons every day.
But the margin for error is small. One purchase, one download or one message can turn a legal visit into a federal case, and Tor will not protect you from your own mistakes.
If you have no clear, lawful reason to be there, the safest choice is to stay away — and to protect the accounts you already have with strong, unique passwords and phishing-resistant MFA. You can check how exposed your own credentials already are with the free pwned password checker.
Frequently asked questions
Is it illegal to go on the dark web?
No, in the United States simply visiting the dark web is not illegal. No federal law criminalizes downloading the Tor browser or browsing .onion sites. It becomes illegal when you buy, sell or knowingly possess contraband, or use the network to commit or plan a crime.
Is downloading Tor illegal?
No. Tor is free, open-source software maintained by the nonprofit Tor Project, and downloading or using it is legal in the US and most Western democracies. Tor was developed from onion routing research at the US Naval Research Laboratory and is used by journalists, researchers and privacy advocates.
Can you get in trouble for accidentally visiting a dark web site?
Accidentally landing on a site is not a crime, but what you do next matters. If you stumble onto illegal content, close it immediately and do not download, save or share anything. Knowingly possessing exploitative material is a serious federal crime, so do not linger or investigate further.
Is the dark web illegal in other countries?
It depends on the country. In the US, UK and EU, using Tor is legal. China, Russia, Iran, Belarus and North Korea have moved to block Tor or penalize its use. If you travel with Tor installed, check the local law first, because the same act can be legal at home and punished abroad.
Can police track you on the dark web?
Yes, sometimes. Tor hides your IP address by routing traffic through relays, but it is not magic. Police use undercover operations, seized marketplaces, malware, operational mistakes by users, and cooperation with hosting providers to identify people. Several major marketplaces were taken down after long undercover investigations.
What is the difference between the deep web and the dark web?
The deep web is everything search engines do not index, including your email inbox, bank account pages and private databases — most of it is ordinary and legal. The dark web is a small, intentionally hidden part of the deep web that needs special software such as Tor to reach.
Is buying things on the dark web illegal?
It depends on what you buy. Buying legal goods is legal, but dark web marketplaces mostly sell drugs, stolen data, counterfeit documents, weapons and hacking services. Buying those is a federal crime, and paying with cryptocurrency does not make the purchase legal or untraceable.
Should I use a VPN with Tor?
A VPN can hide Tor use from your internet provider, but it does not make illegal activity legal, and it adds a provider that can see your traffic. For most people, the safest choice is simply not to visit the dark web at all unless you have a clear, lawful reason and understand the risks.
Sources
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.
Checked against the US Department of Justice Inspector General's dark web audit, the Tor Project's own history, and the FBI's IC3 reporting.
How we write and fact-check →