What is a VPN code?
The phrase covers four different things — an activation key, a config file, a WireGuard key pair, or a setup QR code. Here is how to tell which one you have.
Four different things go by that name
“VPN code” is not a single technical term, which is why searching for it returns such a mess. In practice it means one of four things, and the right next step depends entirely on which one you are holding.
- An activation or redemption key — a string like XXXX-XXXX-XXXX that turns a paid subscription on. This is the most common meaning.
- A configuration file — an .ovpn or .conf file containing the server address, protocol and certificates. Not really a code, but often called one.
- A cryptographic key pair — in WireGuard, a public and private key that identify your device to the server. These are genuinely codes, and the private one is a secret.
- A setup QR code — the same configuration encoded as an image, so a phone can import it by scanning instead of typing.
Activation keys: what they are and are not
An activation key is a licence, not a security credential. It tells the provider that a subscription has been paid for, and it is redeemed once inside the app or on the provider's website. It does not encrypt anything and it is not what secures your connection.
Two practical points follow. First, treat a key from an unofficial reseller with suspicion: heavily discounted keys on marketplaces are frequently either refunded stolen-card purchases that get revoked later, or shared across many people until the provider disables them. Second, the key is usually tied to an account, so it identifies you to the provider even if the connection itself is encrypted.
That second point is the one most people miss. A VPN moves the question of who can see your traffic from your network operator to your VPN provider. It does not remove the question.
Config files and WireGuard keys
A configuration file is a set of instructions: which server to reach, over which protocol and port, using which certificates. With OpenVPN this is an .ovpn file you import into a client. Nothing needs to be typed, and the file itself often contains embedded credentials — which is why it should be treated as sensitive and not emailed around casually.
WireGuard works differently and is where the word 'code' is most literally accurate. Each device generates a key pair: a public key given to the server, and a private key that never leaves the device. If your provider hands you a pre-generated private key rather than letting your device create one, they have had a copy of it, which defeats a meaningful part of the design.
Setup QR codes are simply a config encoded as an image. Scanning is far less error-prone than typing a long key on a phone, which is the entire reason they exist.
The eSIM QR code is a different thing entirely
This causes real confusion, so it is worth separating clearly. An eSIM activation QR code looks similar and is scanned in a similar way, but it is not a VPN code and does nothing related to a VPN.
An eSIM QR carries an LPA string — an address for the server that holds your mobile subscriber profile, plus a one-time matching code. Scanning it downloads a carrier profile onto your phone, which is what gives you mobile data. It replaces a plastic SIM card, not a VPN client.
You can absolutely use both at once: an eSIM provides the connection, a VPN encrypts the traffic travelling over it. They operate at different layers and neither substitutes for the other.
Do you actually need a VPN?
We do not sell a VPN, so this section is easier for us to write honestly than it is for most sites ranking for this query.
A VPN is genuinely useful for a narrow set of things: stopping the network you are connected to from seeing which sites you visit, hiding your IP address from those sites, and reaching services as though you were somewhere else. On a hostile or untrusted network, that is worth having.
It is much weaker than the marketing suggests for everything else. It does not stop websites identifying you through browser fingerprinting, cookies or your logged-in accounts. It does not stop your phone's operating system reporting back. It does not make you anonymous — it shifts trust to the VPN provider, who by definition can see the traffic your network operator no longer can.
For most people asking about privacy, the larger wins are elsewhere: the device not leaking identifiers in the first place, and the connection not being registered to their name. That is what we build, and where a VPN fits alongside it rather than instead of it.