A .ovpn file is an OpenVPN connection profile: one text file with the server address, the settings, and usually the certificates needed to connect. Android can't open it on its own, since OpenVPN isn't one of the built-in VPN types. You need an OpenVPN app, then you import the file and tap Connect.

If your VPN provider has its own Android app, use that instead. It's simpler, and you get server switching and updates for free. This guide is for when all you've got is the file.

Pick an app

There are two well-known OpenVPN clients for Android, and either is fine for a standard profile:

  • OpenVPN Connect, the official client from OpenVPN Inc. On Google Play, with official setup docs.
  • OpenVPN for Android, an open-source client by Arne Schwabe. It's on Google Play and on F-Droid, with the source on GitHub. It exposes more advanced options.

I'll use OpenVPN Connect for the steps, because that's what most providers' instructions assume. The open-source app works the same way in broad strokes: import, then connect.

Step 1: Get the .ovpn file onto your phone

Easiest options, in order:

  • Download it straight on the phone from your provider's or admin's website.
  • Email it to yourself and save the attachment.
  • Put it in Google Drive or another cloud drive. OpenVPN Connect can pick files from there.

One catch: some profiles aren't self-contained. They point to separate files like ca.crt, client.crt or client.key. In that case, OpenVPN's docs say all of those files must sit in the same folder as the .ovpn on the phone. If you control the server, export a "unified" profile with everything embedded instead. It saves a lot of fiddling.

Step 2: Import it into OpenVPN Connect

  1. Install OpenVPN Connect from Google Play and open it.
  2. Agree to the data usage policy. The app lands on its Import Profile screen.
  3. Choose the File option (if you already have a profile, tap + first), then browse to your .ovpn file and select it.
  4. Check the details. If the profile needs a username and password, enter the username here; the app may also offer to save the password.
  5. Tap Connect (some versions say Add first).
  6. Android shows a connection request the first time. Tap OK.

Once it's connected, the key icon appears in the status bar. Exact button labels move around between versions, so don't panic if yours says "Upload file" instead of "File".

If the profile uses a .p12 (PKCS#12) certificate, that goes into Android's certificate store as a separate step from importing the profile. OpenVPN's Android FAQ notes the import always asks for a password; if the file has none, just tap OK with the field empty.

Common import errors

From OpenVPN's own troubleshooting pages, plus the usual suspects:

  • File too big or garbled. Profiles need to be plain UTF-8 or ASCII text and under 256 KB. A file saved by a word processor can break this, so open and save it in a plain text editor.
  • Missing certificate or key. The profile refers to a separate file that isn't in the same folder. Move them together and import again.
  • "Only Layer 3 tunnels are currently supported." The profile uses dev tap. OpenVPN Connect on Android doesn't support TAP tunnels; ask the admin for a TUN profile.
  • "No shared cipher." The server uses older encryption. OpenVPN's FAQ says you can set Security Level to Legacy under the app's advanced settings. A better fix is updating the server, if it's yours.
  • It worked yesterday, not after an app update. Delete the profile, import it again and re-enter your credentials.

Keep it connected: always-on VPN

OpenVPN Connect supports Android's always-on setting. According to OpenVPN's tutorial, it needs Android 10 or later and a profile already imported.

  1. Open Settings → Network & internet → VPN (Samsung: Settings → Connections → More connection settings → VPN).
  2. Tap the gear next to OpenVPN Connect.
  3. Turn on Always-on VPN and, ideally, Block connections without VPN.

Read our always-on guide for the side effects of blocking (hotel Wi-Fi login pages, mainly).

A battery setting to watch

OpenVPN Connect has a Battery Saver option in its settings that pauses the VPN when the screen is off. That saves power, but it also means background apps aren't protected while the phone is in your pocket. OpenVPN also warns that combining it with the Seamless Tunnel option can cut off internet for all apps while the screen is off. If notifications stop arriving, check this first. Our post on VPN battery drain covers the trade-off.

Don't import random .ovpn files

You'll find websites offering lists of "free OpenVPN servers" with downloadable profiles. Be careful. Whoever runs a VPN server can see where your traffic goes once it leaves the tunnel, and a profile can include settings you didn't expect, like custom DNS servers. Only use profiles from a provider you've chosen or a server you or your organization actually run.

And as always, VPN use is restricted or illegal in some countries. Check local rules before relying on one abroad.

We write plain-English guides to choosing, installing and fixing VPNs on Android phones, tablets and TVs. Reviews are based on each provider's published features, pricing, audits and Android app, and we update them when those change.

Comments are closed.

Keep reading