OnionShare is an open-source tool for securely and anonymously sharing files over Tor, it turns your own computer into a temporary web server accessible only through an unguessable onion address. Unlike email, cloud storage, or file-sharing services, OnionShare never uploads your files to any third party: your computer hosts the files directly, and recipients download them through Tor Browser.
How OnionShare works
When you start OnionShare, it launches a web server on your local computer at 127.0.0.1 on a random port. It generates an unguessable onion address using a slug from a 6,800-word wordlist, something like http://f5ratndpx7rgvh7i.onion/fold-foxy. The files you selected are served directly from your machine through this address.
Recipients must use Tor Browser to access the onion address. The connection is end-to-end encrypted through Tor, no exit nodes are involved because both sender and recipient are on the Tor network. Your files never touch a third-party server.
The onion address is protected with a private key by default in OnionShare 2.7, recipients must enter the key to access the files, adding a layer of security beyond just knowing the address.
The security model
OnionShare's security comes from its architecture: your computer is the server. No files are uploaded anywhere, they stay on your machine and are served directly to recipients through Tor. Even the developers of OnionShare cannot access your files because the data never leaves your computer except through the encrypted Tor connection to the recipient.
This eliminates the trust requirements of traditional file sharing. With email or cloud services, you must trust the provider not to access, store, or leak your files. With OnionShare, there is no provider, just you, the recipient, and the Tor network.
The onion address itself is unguessable, the cryptographic onion address cannot be discovered through scanning or enumeration. Combined with the optional private key, this means only someone you explicitly share the address with can access your files.
Real-time sharing and auto-shutdown
OnionShare is designed for real-time sharing. When someone finishes downloading your files, OnionShare automatically stops the server, removing the onion service and files from the internet entirely. To allow multiple downloads, you can uncheck the "stop sharing after first download" option.
This auto-shutdown is a security feature: once the transfer completes, your files are no longer accessible to anyone who might have obtained the address. There is no lingering server, no cached copies, no forgotten shares.
The limitation is that both parties must be online simultaneously. If you start sharing and then suspend your laptop, the service is unavailable until you resume. If the recipient disconnects mid-transfer, the download must restart. OnionShare works best for real-time exchanges where both parties are actively participating.
Sending and receiving
OnionShare supports both sending and receiving files. In send mode, you select files and recipients download them. In receive mode, you provide an onion address and others upload files to you, useful for collecting documents, receiving submissions, or accepting anonymous uploads.
The receive mode is particularly valuable for journalists and activists who need to collect sensitive documents anonymously. Sources can upload files without creating accounts, without email, without leaving a trail beyond the temporary onion service.
Use cases
Journalism: Reporters use OnionShare to receive sensitive documents from sources. The onion address can be published publicly or shared privately, sources upload files without revealing their identity or location. The Reporters Without Borders recommends OnionShare for exchanging sensitive files securely.
Whistleblowing: Whistleblowers can share documents with journalists or lawyers without using email or cloud services that might be monitored. The temporary nature of OnionShare shares means evidence of the exchange disappears after download.
Secure file transfer: For anyone needing to send sensitive files without third-party access, legal documents, financial records, personal photos, OnionShare provides end-to-end encrypted transfer with no cloud storage.
Anonymous uploads: Organizations can collect anonymous submissions, tips, documents, evidence, without building custom infrastructure. The receive mode turns any computer into a temporary secure upload portal.
Limitations and considerations
Simultaneous connection required: Both parties must be online at the same time. This makes OnionShare unsuitable for asynchronous file sharing, you cannot send a file and have the recipient download it later.
Speed limitations: Tor network congestion can slow transfers significantly. There is no file size limit, but large files may take hours to transfer depending on network conditions.
Address leakage risk: OnionShare cannot prevent you from accidentally sharing the onion address publicly. If someone obtains the address and key, they can access your files until you stop sharing. Generate a new address if you suspect leakage.
Malware risk: Files transferred through OnionShare could contain malware. Always scan downloaded files before opening them, OnionShare provides secure transport but does not scan content.
Platform requirements: Recipients need Tor Browser (or compatible Tor-enabled browser) to access onion addresses. Tor Browser for Android has limitations with password-protected OnionShare links.
OnionShare vs alternatives
vs SecureDrop: SecureDrop is a hardened platform for anonymous document submission used by major news organizations. It requires dedicated infrastructure and technical expertise. OnionShare is simpler, runs on any computer, no setup required, but less hardened against targeted attacks.
vs email/cloud: Email and cloud services are asynchronous and convenient but require trusting the provider with your files. OnionShare is real-time and requires no trust but demands simultaneous connection.
vs other Tor tools: OnionShare is purpose-built for file sharing. Other Tor tools like OnionVault or custom onion services can provide similar functionality but require more technical setup.
Getting started
OnionShare is available for Windows, macOS, and Linux. Download it from onionshare.org or the Tor Project. The interface is simple: drag files into the share tab, click "Start sharing," and copy the generated onion address to share through your chosen secure channel.
For sending sensitive files, use an encrypted channel to share the onion address, Signal, Session, PGP-encrypted email, or in-person. Never share the address through unencrypted channels unless your threat model allows it.
For receiving files, publish your onion address on a secure page or share it privately with trusted sources. The receive mode lets anyone with the address upload files to you without creating accounts.
OnionShare is not magic, it provides secure transport but cannot protect against all threats. Your computer must be secure (no malware), your Tor connection must be stable, and you must share the address through a secure channel. Used correctly, it is one of the most private file-sharing tools available.
The Tor Project OnionShare guide, Tor Project OnionShare profile, OnionShare documentation, RSF journalist guide, and OnionShare security design are the primary sources. For related coverage, see our dark web access guide and secure messaging comparison.
Comments 0