Using Tor and visiting onion sites is not illegal in most countries. What you do there can be. The dark web is a network and a set of tools, not a crime in itself.
People ask whether the dark web is illegal because the phrase arrives wrapped in crime stories. Drug markets, stolen data, fraud shops, hitman hoaxes. That coverage is real, but it describes conduct, not the network. The same network carries newsrooms, whistleblowing drop boxes and privacy tools used by millions of people who have no interest in crime.
The short answer is that in most countries, including the United States and the United Kingdom, it is legal to install Tor Browser, connect to Tor and visit onion sites. It is illegal to buy drugs, sell stolen data, access child sexual abuse material, commit fraud, distribute malware, launder money or hire someone to commit violence. The dark web changes how those acts are carried out. It does not change whether they are crimes.
This is general information, not legal advice. Laws vary by country and by what you actually do.

The dark web in one sentence
The dark web is a small set of sites reachable through anonymity networks such as Tor, where the server’s location is deliberately hidden.
That definition is technical. It says nothing about legality. A dark web site can be a newspaper, a leak submission system, a privacy-focused email service or an illegal marketplace. The network does not decide which. Our plain-English guide to the dark web covers the basics.
The deep web, by contrast, is everything search engines cannot index, such as your inbox, your bank, paywalled articles, library databases and company intranets. Almost all of the deep web is ordinary and private. The dark web is a tiny slice of it, defined by the software you need to reach it and by the deliberate hiding of where the site is hosted.
Confusing the two is the root of most bad answers to the legality question. People hear “deep web” and picture criminals. They hear “dark web” and picture the same thing, only darker. Neither phrase is a legal category. Courts do not prosecute people for using a network. They prosecute people for what they did on it.
Why the confusion exists
Three separate things get collapsed into one word.
The tool is Tor Browser, free software distributed openly by the Tor Project. Governments, journalists, researchers, activists, abuse survivors and ordinary privacy users rely on it. Using it is not a crime in most countries. Some employers and universities restrict it on their networks. That is a policy decision, not a criminal one.
The network is Tor itself, which routes traffic through relays so that no single relay knows both who you are and what you are visiting. That design protects privacy. It also makes onion services possible, because a server can be reachable without revealing its location. We walk through the mechanics in How the Dark Web Works.
The conduct is what people do on onion sites. Buying fentanyl. Trading stolen credit cards. Sharing child sexual abuse material. Deploying ransomware. Selling hacked accounts. These are crimes whether they happen on the dark web, on Telegram, on a normal website or in a car park.
Collapse all three and “dark web” becomes a synonym for criminal marketplace. It isn’t. It is an overlay network that hosts both legal and illegal services, in roughly the same way the public web hosts both newspapers and fraud sites.
A short history of enforcement
The legal status of the dark web is easier to understand through cases. Prosecutors have spent more than a decade proving a simple point. The network does not shield conduct, and the cases that reach court are about drugs, fraud, abuse material and hacking, not about the browser someone installed.
Silk Road is the case most people know. Ross Ulbricht ran the marketplace under the name Dread Pirate Roberts. The FBI arrested him in October 2013 in San Francisco. A jury convicted him in February 2015 on charges including distributing narcotics, conspiracy to commit computer hacking and money laundering. He was sentenced to two life terms plus forty years. In January 2025, President Trump granted him a full pardon. A pardon is an act of clemency for one person. It did not change the legal principle the case established, which is that running a marketplace for illegal goods is a drug and money-laundering offence, regardless of the software used to host it.
Operation Onymous in November 2014 was a coordinated takedown across several countries that seized Silk Road 2.0 and a number of other onion services, with arrests in the United States and Europe. AlphaBay and Hansa followed in 2017. AlphaBay’s operator, Alexandre Cazes, was arrested in Thailand and died in custody. Dutch police took over Hansa and ran it for about a month, collecting information on users before shutting it down. The lesson from Hansa was blunt. An onion site can be compromised and operated by police while users believe it is safe.
Wall Street Market was taken down in 2019 with arrests in Germany. DarkMarket was taken down in January 2021, with its alleged operator arrested in Germany. Hydra Market, then the largest Russian-language dark web marketplace, was seized in April 2022 by German authorities with support from the US. Genesis Market, a marketplace for stolen browser fingerprints and credentials, was taken down in April 2023.
Child abuse cases followed a similar pattern. The FBI seized Playpen in 2015 and ran it for roughly two weeks while deploying a network investigative technique to identify visitors. The operation generated legal challenges over whether a warrant issued in one judicial district could authorise hacking a computer in another. Courts split, and the rules were eventually amended to clarify jurisdiction. Welcome to Video, a South Korean site the US Justice Department called the largest child sexual exploitation market by volume of content, had its server seized in March 2018. The takedown was announced in October 2019, with hundreds of users charged worldwide.
None of these cases turned on a charge of “using the dark web”. Every one was prosecuted as drug trafficking, money laundering, computer crime, fraud or child exploitation. That is how the law works, and it is the clearest evidence that the network itself is not the offence.
What is legal
In most countries, all of the following are legal.
- Downloading and using Tor Browser.
- Connecting to the Tor network.
- Visiting onion sites that are not themselves illegal.
- Reading a newspaper’s onion version.
- Using a whistleblowing drop box such as SecureDrop.
- Running a Tor relay or bridge, subject to local law and your network’s rules. The EFF’s legal FAQ for Tor relay operators covers the US position.
- Researching the dark web for journalism, security work or academic study.
The list of organisations that run onion services is longer than most people expect. The BBC, ProPublica, The New York Times and Facebook have all operated onion versions of their sites at various points, and we keep a verified list of current ones in the Sonar Index. SecureDrop, developed by Freedom of the Press Foundation, is used by newsrooms around the world to receive documents from sources. Human-rights groups use Tor to communicate with people in countries that block or monitor the open internet. Law enforcement agencies use anonymity tools too, sometimes to investigate crime and sometimes to protect their own operational security.
None of that makes the tool lawful in every jurisdiction. It does show that the tool has legitimate uses at scale, and that the law in most democracies treats it as infrastructure rather than contraband.
What is illegal
The conduct is what matters. Common dark web crimes include the following.
| Conduct | Why it is illegal |
|---|---|
| Buying or selling drugs | Drug offences apply online as offline |
| Accessing or sharing child sexual abuse material | Illegal in most countries, and viewing and downloading can count |
| Selling stolen data, cards or accounts | Fraud, theft and computer misuse offences |
| Distributing malware or ransomware | Computer misuse and criminal damage offences |
| Hacking into systems | Unauthorised access offences |
| Selling weapons or counterfeit goods | Firearms, customs and consumer law |
| Money laundering | Proceeds-of-crime offences |
| Hiring someone to commit violence | Conspiracy, solicitation or attempt offences |
The dark web does not create a legal safe harbour. Anonymity makes detection harder. It does not change the law.
Two points are worth spelling out because they surprise people. First, accessing illegal material can be enough. You do not have to download a file or pay for anything. In many jurisdictions, deliberately viewing child sexual abuse material is an offence, and in some, merely seeking it out is evidence of intent. Second, conspiracy and attempt offences apply online. Agreeing with someone on an onion forum to commit a crime can be prosecuted even if the crime never happens.
The law in the United States
There is no federal statute that makes “using the dark web” illegal. Prosecutions target the underlying conduct.
The Computer Fraud and Abuse Act, 18 U.S.C. § 1030, covers unauthorised access to protected computers. It is the main federal hacking statute and the one used in cases involving stolen credentials, malware and intrusion into company systems. It is old, broad and frequently criticised, but it does not mention Tor.
Drug offences fall under the Controlled Substances Act. Selling narcotics on an onion marketplace is charged the same way as selling them from a flat, with additional counts for conspiracy and money laundering where the proceeds are moved through cryptocurrency.
Child sexual abuse material offences are covered by federal statutes including 18 U.S.C. § 2251, § 2252 and § 2252A, alongside state law. Federal sentencing for these offences includes mandatory minimums, and the guidelines are severe.
Fraud and identity theft are charged under wire fraud, access device fraud and identity theft statutes. Ransomware cases often combine computer misuse, extortion and money laundering charges.
A few procedural features matter. Federal agents can obtain warrants to deploy hacking tools against suspects, and the rules on where those warrants can be served were clarified by an amendment to Rule 41 of the Federal Rules of Criminal Procedure, effective December 1, 2016. Before that change, courts disagreed about whether a magistrate in one district could authorise remote searches in another. The amendment reduced the disagreement but did not eliminate litigation over particular operations.
Entrapment is a defence in US law, but it is narrower than people assume. It requires the government to have induced someone to commit a crime they were not predisposed to commit. Police running an onion site, or an undercover agent offering to sell drugs, is not entrapment by itself. The question is whether the defendant was already willing.
Sentencing can be heavy. Dark web cases often involve multiple counts, large quantities, and features such as sophisticated concealment and cross-border sales that can push sentences up. The Ross Ulbricht sentence is the extreme example, but long sentences are routine in child exploitation and large-scale fraud cases.
The law in the United Kingdom
The UK has no offence of “using the dark web” either.
The Computer Misuse Act 1990 is the core hacking statute. Section 1 covers unauthorised access to computer material, with a maximum of two years. Section 2 covers unauthorised access with intent to commit further offences, with a maximum of five years. Section 3 covers unauthorised acts impairing the operation of a computer, with a maximum of ten years. Section 3ZA, added later, covers unauthorised acts causing serious damage and carries a maximum of fourteen years, rising to life where there is a serious risk to human welfare or national security.
The Misuse of Drugs Act 1971 covers drug offences. Importation, supply and possession with intent to supply are charged under it or under related legislation, and online sales are treated the same as offline sales.
Child sexual abuse material offences sit mainly in the Protection of Children Act 1978 and the Sexual Offences Act 2003, with simple possession covered by section 160 of the Criminal Justice Act 1988. Maximum sentences vary by offence, from five years for possession of indecent images to longer terms for distribution and production.
The Investigatory Powers Act 2016 governs much of the state’s surveillance and access to communications data. The Online Safety Act 2023 imposes duties on platforms, including some relating to illegal content, and is being implemented in stages. Neither makes Tor illegal.
UK law enforcement has been active against dark web marketplaces and child abuse sites, often working with US and European agencies. The National Crime Agency has run operations against drug marketplaces and has warned users that anonymity is not a shield. The legal basis for those operations is the same as for any other drug or computer crime investigation.
The European Union and international law
EU member states have their own criminal codes, shaped by EU legislation. Directive 2011/93/EU sets minimum rules on combating sexual abuse and sexual exploitation of children, and member states have implemented it in national law. Cybercrime is addressed through Directive 2013/40/EU on attacks against information systems, through the Budapest Convention on Cybercrime, which many countries outside Europe have also signed, and through national computer misuse statutes.
Tor use is legal in most EU member states. Germany, the Netherlands, France and the Nordic countries all have active Tor communities, and some public bodies use Tor for their own purposes. The European Commission has funded privacy and anonymity research. None of that makes every onion site legal, but it confirms that the network is not treated as a prohibited technology.
Cross-border cases are common because dark web marketplaces serve global customers. Prosecutions often involve mutual legal assistance, extraditions and coordinated takedowns through bodies such as Europol. The practical result is that a vendor in one country can be prosecuted in another if the conduct reaches that country’s courts.
Countries that restrict Tor
Some countries block or restrict Tor, and some make anonymity tools risky to use.
China has blocked Tor for years and tightly controls internet access. Russia has blocked Tor at various points and has passed laws regulating anonymous internet use, though enforcement has been inconsistent. Iran has blocked Tor and other circumvention tools. Some other states have restricted access during protests or elections. You can see the effects in Tor Metrics user graphs and in network tests collected by OONI.
Laws change, and technical blocking is often partial. Check local rules before relying on any general statement. In most democracies the tool is legal and the conduct is not. In authoritarian states the tool itself may be treated as a problem, and the legal risk can come from using it at all.
Common myths about whether the dark web is illegal
“Visiting the dark web is illegal.” No. Visiting a legal onion site is not illegal in most countries. Using an illegal marketplace to buy drugs is a drug offence, not a “dark web offence”.
“Tor makes you anonymous, so nothing counts.” Tor protects against many forms of surveillance. It does not protect against poor operational security, malware, seized servers, undercover agents or your own mistakes. Prosecutions of dark web vendors and users are routine, and they often begin with a mistake, such as a reused username, a personal email address or a cryptocurrency transaction that was not as private as the user believed. In May 2025 alone, Europol’s Operation RapTor led to 270 arrests across ten countries.
“Police can’t use the dark web.” They can and do. Law enforcement runs and infiltrates onion services. Sting operations are common. Entrapment rules vary by country, but “the police were there” is not a defence in itself.
“All onion sites are criminal.” No. Newsrooms, human-rights groups, privacy services and SecureDrop instances run onion sites. Plenty of onion sites are legal and some are not, and the .onion address alone doesn’t tell you which. Our guide to spotting fake onion links explains how to check who really runs one.
“Using Tor at work is fine because Tor is legal.” Your employer or university can set its own network policy. Legal under criminal law does not mean allowed on a corporate network. Many organisations block Tor because it bypasses their security controls, not because it is illegal.
“The dark web is the same as the deep web.” No. The deep web is everything search engines cannot index, and it is mostly ordinary and private. The dark web is a small subset reachable through Tor. Almost all of the deep web is not dark web. Our one-diagram comparison shows how they fit together.
“If I don’t download anything, I haven’t broken the law.” This depends on the jurisdiction and the material. In many countries, viewing or accessing certain material is itself an offence, and attempting to access it can be too. Do not assume that avoiding a download avoids liability.
We fact-check more claims like these in Dark Web Myths vs Reality.
Practical rules
If you use Tor, keep these rules in mind.
Six rules that keep you out of trouble
- Do not buy, sell or possess illegal goods or material.
- Do not access systems you are not authorised to use.
- Do not assume anonymity protects you from bad operational security. Our Tor Browser guide covers the habits that matter.
- Do not use a work device or work network if your employer prohibits it.
- Treat unsolicited dark web links as hostile until proven otherwise.
- If you stumble on illegal material, stop, do not download it, and report it to the relevant authority or organisation.
The dark web is not a legal grey zone where normal rules stop. It is a network, and the rules follow you onto it. For the non-legal risks, such as scams and malware, see Is the Dark Web Safe? An Honest Risk Map.
What to do if you find something illegal
If you come across child sexual abuse material, do not download it, do not share it and do not investigate it yourself. Report it to the relevant authority. In the United States, the National Center for Missing and Exploited Children operates the CyberTipline. In the United Kingdom, the Internet Watch Foundation and the police take reports. Many countries have equivalent bodies, listed by INHOPE. Reporting is not the same as possessing, and most hotlines are designed to let you report without transmitting the material.
If you find evidence of fraud, drug trafficking or hacking, the same principle applies. Preserve what you have seen without copying illegal content, and contact law enforcement or the organisation affected.
If you are a researcher or journalist working on the dark web, get advice before you start. Universities and newsrooms usually have policies on handling illegal material, and those policies exist to protect you as much as the subjects of your work.
What 2026 changed
Three things happened in 2026 that are worth knowing, because they change the practical picture without changing the legal one.
Enforcement got bigger, and it was still aimed at conduct. In November 2026, Europol and the US Department of Justice announced the results of an 18-month operation that ran from May 2025 to October 2026: 354 arrests across 14 countries, more than €60 million seized in Europe, and further seizures in the United States. It followed the same pattern as DisrupTor in 2020, Dark Huntor in 2021, SpecTor in 2023 and the arrests announced in May 2025. In every case, the charges were about what people bought, sold or distributed. Nobody was arrested for having installed a browser.
The scanning debate stalled, but did not end. The EU’s long-running “chat control” proposal, which would have required providers to scan private messages, repeatedly failed to produce agreement through 2026, with the European Parliament resisting mass scanning. The proposal is not dead. If it returns and passes in some form, it will affect private communication generally, and anonymity tools as a side effect, without naming Tor at all.
Age verification spread. The UK’s Online Safety Act pushed commercial sites towards verifying ages from 2025, and other jurisdictions have followed. These rules apply to services that host certain content, not to browsers or to the Tor network. They matter indirectly, because identity checks create databases of identity documents, and databases are what get breached.
The common thread is that none of these developments criminalises Tor. They expand the surveillance and enforcement apparatus around private communication, and Tor users are affected the way everyone else is.
FAQ
Is it illegal to use Tor?
In most countries, no. Tor is legal in the US, UK and most EU member states. Some countries block or restrict it. Check local law.
Is it illegal to visit the dark web?
Visiting a legal onion site is not illegal in most countries. Visiting a site to commit a crime, or accessing illegal material, can be.
Can I go to jail for browsing the dark web?
For browsing legal content, no. Accessing child sexual abuse material, buying drugs, committing fraud or hacking can lead to prosecution and imprisonment.
Is the dark web the same as the deep web?
No. The deep web is everything search engines cannot index, such as email, banking, paywalled content and databases. The dark web is a small subset reachable through Tor. Almost all of the deep web is ordinary and private. See What Is the Deep Web? for the full picture.
Do I need Tor to be anonymous?
Tor helps, but it is not a complete anonymity system. Your behaviour, device, accounts and mistakes matter more than the browser.
Is it illegal to run a Tor relay?
In most countries, no. Some internet providers and employers restrict it. Check local law and your network policy, and read the Tor Project’s relay operator guide before you start.
Does a pardon for Ross Ulbricht mean dark web marketplaces are legal now?
No. A presidential pardon is an act of clemency in one case. It does not change the statutes under which dark web marketplaces are prosecuted.
Can police read my messages on the dark web?
If a site is compromised, if a server is seized, or if a device is infected with malware, investigators may be able to read messages. End-to-end encryption raises the bar, but it does not make interception impossible in every case.
This is general information, not legal advice.
Related guides
These are the pages most worth reading next, in the order we would read them.
- Is the Dark Web Safe? — the non-legal risks in the same situations
- Tor Browser Explained — what the tool you are allowed to use does
- What Is the Dark Web? — the plain-English starting point
- Dark Web Glossary — clearnet, relay, exit, onion address
- Dark Web Myths vs Reality — the claims that survive contact with sources
- What Is the Deep Web? — the legal, ordinary part of the iceberg
- Safety and Law — all of the Lantern guides
- How Sonar Works — how we verify anything we claim
Sources
- Tor Project, Tor Browser download and relay operator resources, including the EFF legal FAQ for relay operators
- Electronic Frontier Foundation, Surveillance Self-Defense
- US Computer Fraud and Abuse Act, 18 U.S.C. § 1030
- US child exploitation statutes, 18 U.S.C. § 2251, § 2252 and § 2252A
- US Controlled Substances Act
- Federal Rules of Criminal Procedure, Rule 41, amendment effective December 1, 2016
- UK Computer Misuse Act 1990
- UK Misuse of Drugs Act 1971
- UK Protection of Children Act 1978, Sexual Offences Act 2003 and Criminal Justice Act 1988, section 160
- UK Investigatory Powers Act 2016 and Online Safety Act 2023
- EU Directive 2011/93/EU on combating the sexual abuse and sexual exploitation of children, and Directive 2013/40/EU on attacks against information systems
- Council of Europe, Budapest Convention on Cybercrime, 2001
- US Department of Justice, AlphaBay and Hansa takedown (2017) and Welcome to Video takedown (2019)
- Associated Press, Trump pardons founder of Silk Road website (January 2025)
- OCCRP, Operation RapTor (May 2025)
- Wikipedia case summaries for Operation Onymous, Wall Street Market, DarkMarket, Hydra Market, Genesis Market and Playpen
- National Crime Agency and Europol public statements on dark web operations
- Tor Metrics and OONI Explorer for censorship data