A VPN encrypts all data sent and received between your device and a VPN server. When you connect to a VPN, a secure tunnel is established, and all your internet traffic is sent through it, encrypting all the passing data.