Import & Export
WGnext supports the same import and export formats as the official WireGuard app.
Import
Section titled “Import”Supported formats
Section titled “Supported formats”.conffiles: Standard WireGuard configuration files (wg-quick format).ziparchives: ZIP files containing one or more.conffiles- QR codes: WireGuard configuration encoded as QR codes (iOS only)
How to import
Section titled “How to import”From the app
Section titled “From the app”- Tap + in the tunnel list
- Choose Import from file or Scan QR code
- Select your configuration
From Files / Share Sheet
Section titled “From Files / Share Sheet”On iOS, you can also open .conf or .zip files directly from the Files app or any share sheet — WGnext registers as a handler for these file types.
Export
Section titled “Export”Export all tunnels
Section titled “Export all tunnels”- Open the app
- Select the export option from the menu
- Choose a destination for the
.zipfile
The exported archive contains all tunnel configurations as individual .conf files in standard wg-quick format.
What’s exported
Section titled “What’s exported”Exported configurations include all tunnel settings:
- Interface: private key, addresses, DNS, MTU, listen port
- Peers: public key, pre-shared key, endpoint, allowed IPs, persistent keepalive
What’s NOT exported
Section titled “What’s NOT exported”- Failover group configuration (group membership, failover settings)
- On-demand activation rules
- App preferences
These are specific to WGnext and would need to be reconfigured after import.
Configuration format
Section titled “Configuration format”WGnext uses the standard wg-quick configuration format:
[Interface]PrivateKey = <base64-encoded private key>Address = 10.0.0.2/32, fd00::2/128DNS = 1.1.1.1, 1.0.0.1MTU = 1420
[Peer]PublicKey = <base64-encoded public key>PresharedKey = <base64-encoded pre-shared key>Endpoint = vpn.example.com:51820AllowedIPs = 0.0.0.0/0, ::/0PersistentKeepalive = 25