WireGuard Config Generator
Generate WireGuard server and client configs online — X25519 keypairs created locally, per-peer QR codes for mobile apps, PostUp NAT rules and optional preshared keys.
Generate a full WireGuard server + client config set in your browser — private keys are created locally and never leave your device.
Server
Peers
About WireGuard Config Generator
WireGuard setup means generating a Curve25519 keypair per peer, then writing matching [Interface]/[Peer] stanzas on server and client. This tool builds the whole set — server wg0.conf plus one client config per peer, each with its own QR code that the WireGuard mobile app can scan directly.
Keys are created in your browser using audited Curve25519 math (@noble/curves) — nothing is sent anywhere. Because keys are generated in-page, save the .conf files before closing the tab; reloading regenerates new keys.
How to use WireGuard Config Generator
- Set the server endpoint (public host:port), VPN subnet and client DNS.
- Choose peer count, full vs split tunnel, and whether to add PresharedKeys.
- Click Generate, copy or download wg0.conf for the server.
- Scan a peer QR code from the WireGuard app, or download the peer .conf files.
Frequently asked questions
Are the keys generated on a server?
No — private keys are created locally in your browser with crypto.getRandomValues + Curve25519 scalar multiplication. They never leave the page, which is also why you must save the configs before reloading.
What does the PresharedKey add?
An extra symmetric secret mixed into the handshake — defense-in-depth that also blunts a future quantum attack on the Curve25519 key exchange.
Which peers are allowed to route internet traffic?
Client AllowedIPs 0.0.0.0/0, ::/0 routes everything through the tunnel (full tunnel). The split-tunnel option routes only the VPN subnet, so the peer keeps its normal internet route.