A modern, peer-to-peer encrypted chat with no backend.
- Live Demo: https://p2-p-chat-eight.vercel.app/
- No server, no sign-up required.
- Just open the
.htmlfile in two browsers, or use the online version to start chatting!
- Customizable username
- Connect via PeerJS code (copy/paste the generated ID)
- End-to-end AES-GCM 256-bit encryption (key is derived automatically from the connection code)
- Modern, dark, responsive interface
- 100% offline: no logging, nothing passes through a server
-
Try it right now with the online demo on Vercel OR open
index.htmlin your browser
Works with Chrome and Firefox. If you encounter issues, try both -
Choose a username
This name will appear in the chat. -
Share your PeerJS ID
- The first user copies their ID (left column).
- The second user pastes it into the right column and clicks Connect.
-
Start chatting, securely!
All messages are automatically encrypted.
- Strong AES-GCM encryption, with the key automatically derived from the shared PeerJS code
- Messages are unreadable without the code
- No server, no storage
- One-to-one chat only (1:1)
- No strong authentication: do not share your PeerJS code publicly
- Some connections may fail (due to NAT, corporate networks, etc.)
- Try with both Chrome and Firefox if one browser doesn't work.
- Refresh the page and try again.
- Make sure the PeerJS ID is complete and has no spaces.
- PeerJS (WebRTC P2P)
- WebCrypto AES-GCM
Just open the HTML file, or use the live demo:
no install needed, and your P2P encrypted chat is ready!