WireGuard
WireGuard is a modern VPN protocol built to be fast and simple. Its code is small enough to audit properly, and it connects quicker and runs faster than older protocols like OpenVPN.
Definition
WireGuard is the set of rules a VPN app uses to build an encrypted tunnel between your device and a VPN server. It was released in 2020 as a deliberate rethink of older protocols such as OpenVPN and IPSec, which had grown large and complicated over decades.
Its defining feature is size. OpenVPN runs to roughly 100,000 lines of code; WireGuard is around 4,000. That matters more than it sounds: less code means fewer places for bugs to hide, and a codebase small enough that security researchers can actually read all of it.
Why it feels faster
- It runs closer to the hardware. WireGuard can operate inside the operating system kernel, so traffic is not constantly shuffled between system layers.
- Connections start almost instantly. The handshake takes a single round trip, so switching servers feels immediate rather than taking several seconds.
- It survives network changes. Moving from Wi-Fi to mobile data does not drop the tunnel — useful on a phone that changes network all day.
- It is easier on the battery, because it only does work when data is actually moving.
How the encryption is arranged
WireGuard does not let you choose from a menu of ciphers the way OpenVPN does. It picks one modern, well-regarded set and uses it everywhere. That sounds restrictive, but it removes a whole class of misconfiguration, and if a weakness were ever found the protocol version is simply replaced rather than patched around.
Each side has a public and a private key, exactly like SSH. Your device and the server exchange public keys once, then recognise each other instantly on every future connection. Traffic travels over UDP, which is quicker than TCP but can be blocked on restrictive networks — which is why providers still keep OpenVPN available as a fallback.
The privacy catch, and how providers solve it
Plain WireGuard was designed for connecting your own machines, not for running a commercial VPN. To route traffic it assigns each connected device a fixed internal IP and keeps it on the server — which, left alone, would be a record linking a user to a session.
Reputable VPN providers work around this rather than ignore it, typically by adding a layer that assigns addresses dynamically and discards them, or by keeping the whole system in RAM so nothing survives a reboot. Several ship it under their own name — NordLynx at NordVPN, for example — precisely because it is modified WireGuard rather than the stock protocol. If a provider offers WireGuard, it is fair to ask how they handle this.
Should you use it?
For most people, yes — it is the best default in almost every VPN app today, and the speed difference is genuinely noticeable on fast connections. Switch to OpenVPN only if WireGuard is blocked on the network you are using, since OpenVPN can disguise itself as normal HTTPS traffic in a way WireGuard cannot.
Examples
Picking WireGuard in your VPN app's protocol settings and noticing servers connect in about a second instead of five
NordVPN's NordLynx and Mullvad's WireGuard support, both built on the protocol with privacy adjustments layered on top
Running a personal VPN on a home server or cloud VPS so you can reach your own network securely while travelling
Keeping a VPN connection alive on a phone that switches between Wi-Fi and mobile data throughout the day
Common Use Cases
Frequently Asked Questions
Keep Learning
All termsVPN
A VPN (Virtual Private Network) encrypts all of your device's internet traffic and routes it through a remote server, hiding your IP and protecting data on untrusted networks.
Read definitionSSL/TLS
SSL/TLS is the encryption protocol that secures data in transit on the web — the 'S' in HTTPS — protecting it from eavesdropping and tampering.
Read definitionKill Switch
A kill switch cuts your internet connection the instant your VPN drops, so your real IP address is never exposed during the gap before it reconnects.
Read definition