Start a project

Tool 436 of 450 · VPN

WireGuard Config Generator

Generate WireGuard server and peer configs with keys made in your browser, addresses and allowed IPs.

WireGuard Config Generator

Your input

Result

PeerAddressPublic key
Server wg0.conf
Peer configs

    01

    What it does

    Generate WireGuard server and peer configs with keys made in your browser, addresses and allowed IPs.

    • X25519 key pairs and preshared keys generated on your device
    • Server and any number of named peers
    • Full tunnel or split tunnel, plus custom allowed IPs
    • IPv4 and optional IPv6 (ULA) addresses

    02

    Private by design

    Everything happens in your browser. Nothing you type, paste or upload is sent anywhere, and it keeps working offline once the page has loaded.

    03

    What you get

    wg0.conf, peer configs and a ZIP, with a Copy and a Download button on every result.

    • WireGuard
    • VPN
    • X25519

    Why it matters

    WireGuard is simple once it's running, but the first config means generating keys on the right machine, numbering addresses and matching AllowedIPs on both ends.

    Keys are made with the X25519 maths in this page, from your browser's secure random generator, and never sent anywhere.

    How to use it

    1. Type or paste your input; the example shows the format.
    2. Press Generate configs. Results also update as you type.
    3. Read the summary line, then the table, notes or output below it.
    4. Copy or download what you need. Nothing leaves this page.

    FAQ

    Is it safe to generate keys in a browser?

    The keys come from crypto.getRandomValues, the same generator browsers use for TLS, and nothing leaves this page. For the most sensitive set-ups, generate the server key on the server with wg genkey and paste it here to derive the public key.

    Full tunnel or split tunnel?

    Full tunnel (0.0.0.0/0, ::/0) sends all traffic through the VPN. Split tunnel sends only the VPN subnet, so normal browsing stays on the local connection.

    Why PersistentKeepalive?

    Peers behind NAT (phones, home routers) need a packet every 25 seconds or so to keep the mapping open so the server can reach them.

    Is my input uploaded?

    No. The tool runs in your browser and nothing you type, paste or open is sent anywhere.

    Can I rely on the result?

    It follows the public specification or formula named on this page and says where it simplifies. Check anything critical against the official tool or documentation before you ship it.

    Work with me

    Want a site that gets these right?

    I build fast, accessible websites and web apps that pass these checks from day one. Tell me about your project and I'll reply personally with honest next steps.

    All developer tools · Back to leej.uk