Privacy and Security

Peer-to-Peer File Transfer: Send Files Without Uploading

How WebRTC lets two browsers send files directly and encrypted, how connection codes and safety codes work, and when peer-to-peer beats cloud links.

Saizul Amin
Saizul Amin2 Nov 2026 · 3 min read
Peer-to-Peer File Transfer: Send Files Without Uploading

Peer-to-Peer File Transfer: Send Files Without Uploading

Sending a large file usually means uploading it to someone else's server first: a cloud drive, a transfer service, an email provider. The file then sits there for days or forever, sometimes scanned, sometimes leaked, often limited in size. There is another way. Two browsers can connect directly and send the file between them with encryption, with nothing stored in the middle. The peer-to-peer file sharing tool does exactly that. Here is how it works.

WebRTC in brief

WebRTC is the technology that powers video calls in browsers. Besides audio and video, it offers data channels for arbitrary data. Two features matter here:

  • Direct connections: data flows between the two devices whenever the network allows it.
  • Mandatory encryption: every WebRTC connection is encrypted with DTLS, the datagram version of TLS. There is no unencrypted mode.

The handshake problem

Before two browsers can connect, they must exchange a description of themselves: supported features, possible network addresses and the fingerprint of their encryption certificate. Normally a signalling server relays this. This tool lets you relay it yourself:

  1. The sender creates a connection code (or a link containing it).
  2. The receiver opens the link and creates a reply code.
  3. The sender pastes the reply code and connects.

The codes travel through any channel you already use: chat, email or text messages. They contain no file data and no key that would let someone read the transfer.

Getting through routers

Most devices sit behind routers that translate addresses. To find a route, each browser asks a STUN server what its public address looks like. STUN servers only see network addresses, never your files. On some strict corporate or mobile networks direct routes are blocked; switching networks or using the same Wi-Fi usually solves it.

The safety code

What if someone intercepted your chat and swapped the codes for their own? Then each of you would actually be connected to the attacker. To detect that, the tool derives a short safety code from both sides' encryption fingerprints and shows it on both screens. Read it out by phone: if both screens show the same code, nobody is in between.

Why choose peer-to-peer?

  • Privacy: no copy stays on any server.
  • No size limits: the practical limit is the receiver's memory and disk.
  • Speed: on the same network, transfers run at local speed.
  • No accounts: neither side needs to sign up.

The trade-off is that both people must be online with the page open at the same time. For asynchronous sharing, an encrypted file sent through email or cloud storage is more practical.

Practical tips

  • Keep both pages open and devices awake until the transfer completes.
  • Send one large file at a time on slow connections.
  • Use the chat to confirm the file arrived and opens.
  • For sensitive files, always compare the safety code.

A worked example

A photographer needs to send 18 GB of wedding photos to a client. A cloud transfer would mean uploading for an hour and the client downloading again. Instead, both open the tool, the photographer sends the link by message, the client replies with their code, both read out the same safety code on the phone, and the archive streams directly. Nothing is stored on any server, and the transfer ends when the files arrive.

Summary

WebRTC lets browsers send files directly and encrypted, with connection codes exchanged through any chat and a safety code to rule out interception. Try the peer-to-peer file sharing tool for your next large or private transfer.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages