About WebRTC Peer-to-Peer File & Text Transfer
WebRTC Peer-to-Peer File & Text Transfer connects two browsers directly and streams your files, folders, and messages over the encrypted data channel between them. The transferred bytes never reach this site: only the WebRTC session description and ICE candidates are exchanged, either through the same-origin room mailbox or by copying the codes yourself.
The transfer workflow separates session setup from data transfer: room mode relays short signaling messages, while files and text move over the encrypted WebRTC data channel. Manual codes can avoid the signaling mailbox when both sides can exchange them safely.
How to use this developer tool
- Open the tool on both devices. On the first device create a room and share the eight-character code, invite link, or QR code; on the second device enter that code to join.
- Without a room, switch to manual codes: generate an invite code, hand it to the other side, and paste the reply code back to finish the handshake completely offline.
- Add your own STUN or TURN servers when the two devices are not on the same network, and enable relay-only mode if you do not want local addresses in the candidates.
- Once the channel is connected, drag in files or folders, or type a message. Pick a receive folder first when the transfer is larger than browser memory allows.
Privacy and data handling
File and message contents travel only over the direct WebRTC data channel, which is encrypted with DTLS. The room mailbox relays session descriptions and ICE candidates in memory for at most ten minutes and is released as soon as the channel is up; manual codes avoid the mailbox entirely. STUN and TURN credentials stay in this browser and are sent only to the servers you configured.
Related developer tools
Frequently asked questions
Do my files pass through your server?
No. Files, folders, and text move directly between the two browsers over the WebRTC data channel. The server only relays the short session-setup messages, and only in room mode.
Why do I need a TURN server?
STUN is enough when at least one side can be reached through NAT. When both networks block direct paths, a TURN server relays the encrypted media, so bring your own to keep control of that relay.
Is there a file size limit?
Transfers stream in chunks, so size is bounded by the receiving side. Choose a receive folder to write straight to disk; otherwise received data is buffered in browser memory up to 512 MB.