• Catalog
  • Blog
  • Tor Relay
  • Jabber
  • Secret Notes
  • Temp Mail
  • Get Tor Browser
  • Guides
    OnionShare anonymous file sharing over Tor guide with comparison of secure transfer tools

    Email, Google Drive, Dropbox, and every other mainstream file-sharing channel all share one uncomfortable property: they hand your files to a company, create an account trail, and log the transfer. For most personal photos that trade-off is fine. For a leak, a legal document, a research dataset, or anything a hostile party could weaponize, it is not. This is the problem space OnionShare occupies: it turns your own laptop into a temporary, anonymous file server on the Tor network, so that a file can move from your machine to a recipient's machine without a third party ever seeing it.

    This is a practical guide, not an overview. We covered OnionShare's design and how it works in a separate article; here we focus on actually using it well, installation, setup, real-world scenarios, security limits, OPSEC discipline, and how it stacks up against SecureDrop, Magic Wormhole, and croc. If you want the broader anonymity picture first, our darknet OPSEC guide is the foundation this article assumes.

    What OnionShare actually is

    OnionShare is an open-source desktop application developed by the Tor Project and maintained by the SecureDrop team. In one sentence: it runs a local web server, exposes it to the internet as an ephemeral Tor onion service, and hands you an unguessable address (plus an optional private key) that a recipient opens in Tor Browser to download or upload files. There is no account, no central server, no signup, and no company in the middle.

    Key properties that matter in practice:

    • No third-party access. Because your computer is the server, not even the OnionShare developers can see your files. As the official documentation puts it, nothing that happens in OnionShare can be accessed by anyone else, not even OnionShare itself.
    • Temporary by design. The onion service exists only while the app is running and the share is active. Stop sharing (or let the first download finish, if you enabled that) and the address ceases to resolve to anything.
    • Anonymous both ways. Tor hides the sender's IP and location from the recipient, and hides the recipient from you. The onion address itself reveals nothing about who you are.
    • Client authentication optional. By default, anyone who learns the address can fetch the files, so you must share the URL over a secure channel. With the private-key mode enabled, the recipient also needs a cryptographic key, which raises the bar considerably.
    • More than file sharing. Modern versions include a Receive files mode (the recipient uploads to you), an anonymous chat mode, and a Publish website mode that hosts a static site on a temporary onion address.

    OnionShare is preinstalled on Tails and available for Windows, macOS, and Linux, a useful fact if you want a hardened baseline environment; see our Tails deep dive for why amnesia matters for file drops.

    How it works under the hood

    The mechanics are simpler than they look, and understanding them prevents most misuse. When you click "Start sharing," OnionShare creates a local web server bound to your machine and registers it as a Tor onion service. The Tor network then makes that service reachable at an address like http://xxxxxxxx.onion, a 56-character name that encodes your service's public key, meaning only someone who has the full address can even locate it. Onion services hide the server's real location entirely; there is no DNS record and no public IP to leak. For the deeper mechanics of onion addressing, see how onion services and onion addresses work.

    Two things follow directly from this architecture:

    1. The address is the credential. Anyone holding the .onion URL can reach the service. Treat it like a password: never paste it into a public forum, never post it where an adversary could find it, and never reuse it after a session you consider compromised.
    2. Availability is your machine's uptime. If your laptop sleeps, loses connectivity, or Tor loses the circuit, the share dies mid-download. Unlike a hosted file service, OnionShare cannot buffer your files anywhere else, there is nowhere else.

    Real use cases

    Journalist-source exchanges. The canonical scenario: a source needs to hand a reporter documents without email metadata, a Dropbox account, or a physical meeting. The journalist runs OnionShare Receive mode (or Share mode for outgoing replies), generates the address, and exchanges it through an out-of-band channel, ideally PGP-encrypted email or a verified Signal conversation. Organizations doing this at scale typically use SecureDrop instead, but OnionShare is what an individual reporter or a small newsroom reaches for first.

    Whistleblower and activist drops. A one-time anonymous drop where the recipient may never reply. OnionShare's strength here is that there is no persistent inbox, the service vanishes when you stop it, leaving no mailbox for an adversary to subpoena or breach.

    Personal secure transfers. Sending someone a sensitive document, a will, tax records, medical files, without trusting an email provider. The recipient doesn't even need Tor expertise beyond installing Tor Browser.

    Anonymous web publishing. The Publish website mode lets you host a static site on a temporary onion address, which is how many one-off leak sites and activist pages are served without a permanent infrastructure footprint.

    Step-by-step: a typical file share

    1. Prepare the environment. Ideally run OnionShare on Tails (USB boot, amnesic, Tor-only by default) or at minimum launch Tor Browser first so OnionShare can reuse its connection. Disable notifications and close unrelated applications before starting.
    2. Install and launch. Download OnionShare only from onionshare.org or your distro's package manager. Launch it; it will start its bundled Tor connection automatically.
    3. Select the mode. Choose "Send files" (you upload, they download) or "Receive files" (they upload to you). Add your files or folders. Configure the options: enable the private key for sensitive transfers, set "stop sharing after files are sent" if you want one-shot delivery, and set a download limit if appropriate.
    4. Start sharing and get your address. OnionShare displays the .onion URL and, if enabled, a private key. Note that address generation takes a few moments.
    5. Transmit the address securely. Send the URL, and key, if used, through a channel appropriate to your threat model. Options range from PGP-encrypted email to a pre-arranged passphrase system. Never send it over the same channel an adversary might monitor without encryption.
    6. Verify the recipient. For high-stakes exchanges, establish a verification ritual beforehand: a code phrase exchanged through a different channel, or a PGP-signed message confirming the onion address fingerprint. The address is cryptographically tied to your ephemeral key, so a changed address means a different service.
    7. Monitor and close. Watch the download counter. When the transfer completes (or the recipient confirms receipt), stop the share immediately. Closing the tab or quitting the app tears down the onion service entirely.

    Security considerations and honest limitations

    OnionShare protects the transport exceptionally well. It does not protect everything around it, and users routinely overestimate what it covers:

    • It is not end-to-end encrypted file storage, it is encrypted transport. Files pass through Tor's encrypted circuits to your local server and out to the recipient. They are not encrypted at rest beyond your disk's own protection, and a recipient who downloads them gets plaintext. If you need the files themselves encrypted at rest, encrypt them before sharing (a PGP-encrypted archive is a common pattern) and send the passphrase separately.
    • Speed is the price of anonymity. Tor routes through multiple relays worldwide. Large files can be painfully slow, and long-lived circuits are more exposed to correlation analysis. For big transfers, compress first, split into chunks, or consider alternatives below.
    • Both parties must be online simultaneously. OnionShare is real-time peer transfer, not a mailbox. If the sender's machine sleeps mid-transfer, the download fails and must restart from zero. This is the single biggest operational limitation versus hosted services or store-and-forward tools.
    • The address is a bearer secret. If the .onion URL leaks, a screenshot, a forwarded email, a shoulder-surfed screen, anyone can download the files until you stop the share. The private-key mode mitigates this; use it whenever the address might be exposed.
    • Metadata still exists. While Tor hides IP addresses, patterns remain: timing correlation, the fact that a transfer happened, and whatever the recipient does with the files afterward. OnionShare cannot protect you from an adversary who already knows both endpoints.
    • Receiving is riskier than sending. Files you receive can contain malware. Never open unexpected executables, PDFs with embedded scripts, or archives on your main machine, use a sacrificial environment, and consider tools like Dangerzone for document sanitization.
    • Mobile support is limited. The iOS and Android apps can send files but not receive them, and lack several desktop features. Serious exchanges should stay on desktop, ideally Tails.

    OPSEC best practices for OnionShare users

    Transport security is the easy part; operational discipline is where anonymity is actually won or lost. In rough order of importance:

    1. Run it inside a dedicated environment. Tails is the reference setup: amnesic RAM-only OS, Tor enforced at the routing level, no persistence for the address or files to leak into later sessions. On a normal OS, at least use a separate user account and keep the share window open only as long as needed.
    2. Choose your channel for the address like it is the file itself. The onion URL plus private key is the secret. Deliver it through PGP-encrypted email, a pre-shared passphrase verified out-of-band, or an encrypted messenger with verified safety numbers, never plaintext email, never a public paste.
    3. Pre-arrange a verification ritual. Before the exchange, agree on a check: a code phrase, a fingerprint of the expected onion address communicated through a second channel, or a signed statement. This defeats address-substitution attacks where an adversary intercepts and replaces the share.
    4. Minimize the session footprint. Prepare everything before starting: files staged, environment clean, messaging apps closed. Start the share only when the recipient is ready, and stop it the instant the transfer completes. Every extra minute the service is live is extra exposure.
    5. Assume the metadata tells a story. A Tor user spinning up an onion service at a politically sensitive time is itself observable to global adversaries via traffic analysis. Don't let timing patterns, always-on availability, predictable daily windows, make correlation easier.
    6. Encrypt sensitive payloads anyway. Layer PGP or age encryption on top of the Tor transport for defense in depth: if either layer fails, the other still protects the content.
    7. Never reuse addresses. Each session generates a fresh onion address by default. Don't fight this, reuse is what turns a one-time anonymous transfer into a trackable pattern.
    8. Mind the human layer. The most common failure is not technical: pasting the address into the wrong chat, leaving Tor Browser open with history, or discussing the transfer on an account tied to your real identity. Our OPSEC guide covers the behavioral side in depth.

    Alternatives: OnionShare vs SecureDrop, Magic Wormhole, and croc

    No single tool fits every threat model. Honest comparison:

    ToolHow it worksBest forWeaknesses
    OnionShareTemporary onion service on your machine; recipient uses Tor BrowserOne-off anonymous sends/receives, small newsrooms, personal secure transferBoth parties online simultaneously; slow for large files; mobile send-only
    SecureDropPurpose-built whistleblower platform: dedicated servers, two-factor review, no direct journalist contactNewsrooms handling sensitive sources at scale, strong legal isolationRequires infrastructure and operational overhead; overkill for a single transfer; see our SecureDrop guide
    Magic WormholePeer-to-peer transfer over the internet using a short code; can run over TorEveryday secure sends to non-technical recipients; works well for moderate file sizesDoes not anonymize by default, must be configured over Tor; code-guessing window is short
    crocPeer-to-peer, resumable transfers with a passphrase; relay-assisted optionLarge files, unreliable connections, non-anonymous-but-encrypted transfersNo anonymity unless tunnelled through Tor manually; newer project, smaller audit history

    The short version: SecureDrop is for institutions with sources as a standing workflow; OnionShare is for individuals and small teams needing anonymity with near-zero setup; Magic Wormhole is the pragmatic everyday choice when anonymity isn't the requirement but end-to-end encryption is; croc wins on transfer robustness for big files but needs you to bolt on Tor yourself for anonymity.

    Limitations and when not to use OnionShare

    Be honest about fit. OnionShare is the wrong tool when:

    • You need to send files to someone who cannot run Tor Browser, there is no clearnet fallback, by design.
    • Files are large (multiple gigabytes) or the recipient is on a slow connection, Tor throughput will make this miserable; split archives or choose a different channel.
    • Asynchronous delivery matters, you cannot leave a file "in the mailbox"; the sender must stay online.
    • The recipient is a high-value target whose browser might be compromised, consider PGP-encrypted email to an air-gapped key, or a dead drop, instead.
    • You need proof of receipt or audit logging, OnionShare gives you a download counter, nothing more.

    Also remember the legal frame: in most jurisdictions, sending files anonymously is lawful; what matters is what the files contain and why you're sending them. This guide is about privacy technology, not about evading lawful process, and anonymity tools do not shield you from consequences of the underlying activity. If you are handling material that could expose you or others to real risk, consult a lawyer before the transfer, not after.

    Bottom line

    OnionShare is the closest thing to "anonymous WeTransfer" that exists: free, open source, no accounts, no third parties, and genuinely anonymous when used correctly. Its constraints, real-time availability, Tor-speed transfers, and the bearer-secret nature of the onion address, are features of its architecture, not bugs to route around. Pair it with Tails, an encrypted channel for the address, a verification ritual, and a pre-encrypted payload, and it covers the vast majority of one-off secure file exchange needs. When your needs outgrow it, persistent source intake, institutional whistleblowing, or huge files, the alternatives above are the escalation path.

    Author OnionInfoDesk
    OnionShare: Secure File Sharing Over Tor, How It Works
    SecureDrop: Whistleblowing Platform Guide
    Darknet OPSEC Guide: Operational Security Best Practices
    Tails OS Deep Dive: Amnesic Live System Security

    Comments 0

    Add comment