WireGuard Config Generator
Generate WireGuard wg0.conf online for free. Interface and Peer blocks with addresses, DNS, MTU, endpoints, AllowedIPs and persistent keepalive - copy-ready output, entirely client-side.
Loading tool...
What is WireGuard Config Generator?
The WireGuard Config Generator composes wg0.conf files entirely in your browser: an Interface block with your secret key, addresses, DNS, MTU and optional listen port, plus one Peer block per endpoint with public key, AllowedIPs and persistent keepalive. The copy-ready output works with wg-quick, mobile apps and QR encoding.
Key Benefits
- Correct wg-quick syntax without memorizing every field
- Any number of Peer blocks with individual keys and endpoints
- AllowedIPs and PersistentKeepalive per peer
- Copy-paste output ready for QR encoding on mobile
- Secrets never leave the page - fully client-side
Common Use Cases
- •Setting up VPN client profiles for phones and laptops
- •Building server-side configs with one Peer block per user
- •Rotating endpoints or keys across a fleet of devices
- •Generating configs to share over QR codes at events
How to Generate a WireGuard Config
- Fill the interface: Enter the interface secret, addresses, DNS and optional MTU or listen port.
- Add peers: Add one peer per endpoint with its public key, AllowedIPs and keepalive setting.
- Review the config: The wg0.conf output updates live with every field you change.
- Copy or download: Copy the config to your WireGuard app or download wg0.conf and activate the tunnel.
Key Features
- Interface block with secret, address, DNS, MTU and port
- Unlimited Peer blocks with public keys and endpoints
- AllowedIPs and PersistentKeepalive per peer
- Live wg-quick-ready output with copy and download
- Add or remove peers as your network grows
- No upload, no account - secrets stay in the page