How To Encrypt Google Sheets

With growing concerns about data privacy and security, it’s more important than ever to ensure that your documents are safe. Encryption is a well-established way to protect your data from unwanted eyes. In this blog post, we will show you how to encrypt Google Sheets, offering an additional layer of protection to your sensitive information.

Google Sheets & Encryption

Google Sheets, as a part of Google Drive, offers a certain level of security with protected sharing features and SSL encryption. However, it doesn’t provide an option to encrypt individual documents. But don’t worry! There are third-party add-ons and external methods to help you encrypt your data on Google Sheets.

Method 1: Use a Third-Party Add-on

The most straightforward way to encrypt a Google Sheets document is by using a third-party add-on, such as Cryptosheets. Here’s how you can do it:

  1. Open the Google Sheet you want to encrypt.
  2. Click on Add-ons > Get add-ons.
  3. Search for Cryptosheets in the search bar.
  4. Click on Install and then on Continue to give the necessary permissions.
  5. After installation, go to Add-ons > Cryptosheets and click on Start.
  6. Now, you can select the data you want to encrypt in your sheet, then use the Cryptosheets sidebar to encrypt it.

Method 2: Using Google Apps Script

If you have some coding skills, you can use Google Apps Script to encrypt and decrypt data in Google Sheets. Below is a sample script that encrypts and decrypts a cell using a simple Caesar Cipher:

    // Encrypts or decrypts the text in the active cell using a Caesar cipher.
    function caesarCipher() {
      var activeCell = SpreadsheetApp.getActiveSpreadsheet().getActiveCell();
      var text = activeCell.getValue();
      var amount = 13; // Shift amount for cipher
      var output = '';

      for (var i = 0; i < text.length; i++) {
        var c = text[i];
        if (c.match(/[a-z]/i)) {
          var code = text.charCodeAt(i);
          if ((code >= 65) && (code <= 90))
            c = String.fromCharCode(((code - 65 + amount) % 26) + 65);
          else if ((code >= 97) && (code <= 122))
            c = String.fromCharCode(((code - 97 + amount) % 26) + 97);
        output += c;


Remember, this is a simple encryption method and should not be used for sensitive information. For more complex encryption methods, consider learning AES encryption, which can also be implemented using Google Apps Script.


Encryption can be a valuable tool to keep your data safe. Although Google Sheets does not provide a built-in encryption feature, third-party add-ons and Google Apps Script can be used to add this functionality. Keep your data secure and private with these effective methods!