To add borders in Google Sheets, select the cells you want to format, then click the Borders icon in the toolbar and choose a border style. The Borders icon looks like a square with four lines inside it and sits between the Fill Color and Merge Cells buttons. You can also access the same options through the menu: Format > Borders, which gives you the same choices plus a few extra ones.

Borders in Google Sheets are purely visual. They do not affect formulas, sorting, filtering, or any other data operation. They help you separate data, highlight important cells, or make a printed sheet easier to read. You can add borders to a single cell, a range of cells, or an entire sheet. The steps below cover the most common ways to do it, including how to change border style, color, and thickness.

What You'll Need

  • A Google account (free) and access to Google Sheets through a web browser, or the Google Sheets mobile app for Android or iOS.
  • A spreadsheet with some data in it, or a blank sheet if you just want to practice.
  • Basic familiarity with selecting cells (click and drag, or click on a cell and Shift+click another cell to select a range).

Step-by-Step

Method 1: Using the Toolbar (Fastest)

  1. Open your Google Sheets document in a web browser (Chrome, Firefox, Safari, Edge, etc.).
  2. Select the cell or range of cells where you want borders. To select a single cell, just click it. To select a range, click the first cell and drag to the last cell. To select an entire row or column, click the row number or column letter.
  3. Look at the toolbar at the top of the page. Find the Borders icon. It looks like a square with four lines inside it (a grid). It is usually between the fill color (paint bucket) icon and the merge cells icon. If you hover over it, a tooltip says “Borders.”
  4. Click the Borders icon. A small dropdown menu appears with several border options. The options are: Bottom border, Top border, Left border, Right border, Outer borders (all four sides), All borders (including internal lines for a range), Horizontal borders (top and bottom of each cell), Vertical borders (left and right of each cell), and No borders (removes all borders).
  5. Click the option you want. For example, click “All borders” to put a border around every selected cell. The borders appear immediately.
  6. If you want to change the border style (thickness or line type), click the Borders icon again and look at the bottom of the dropdown. There is a small “Border style” section with a line thickness selector (from 1px to 8px) and a line type selector (solid, dashed, dotted, double). Choose a style first, then apply the border. The style you pick applies to the next border you draw.
  7. To change border color, click the Borders icon, then at the bottom of the dropdown click the paintbrush icon (or a color swatch) next to “Border color.” Choose a color from the palette, or click the plus sign to add a custom color. Then apply the border as usual.

Method 2: Using the Format Menu

  1. Select the cells you want to format.
  2. Click the “Format” menu at the top of the screen.
  3. Hover over “Borders” in the dropdown. A submenu appears with the same border options as the toolbar (Bottom, Top, Left, Right, Outer, All, Horizontal, Vertical, No borders).
  4. Click the desired option. The borders are applied.
  5. To set border style and color from the menu, click “Format” > “Borders” > “Border style” (or “Border color”). A small dialog opens where you can pick thickness, line type, and color. Then click “Apply” to apply to the selected range.

Method 3: Using the Mobile App (Android and iOS)

  1. Open the Google Sheets app on your phone or tablet.
  2. Tap on the spreadsheet you want to edit.
  3. Tap and drag to select the cells you want to format. To select a single cell, just tap it.
  4. Tap the “Format” icon at the top of the screen. It looks like a capital “A” with small horizontal lines next to it (on Android, it’s in the top right; on iOS, it’s in the top right as well).
  5. In the formatting panel that appears at the bottom, tap “Cell” (or “Cell formatting”).
  6. Scroll down to the “Borders” section. You’ll see a row of border icons (bottom, top, left, right, outer, all, horizontal, vertical). Tap the one you want.
  7. To change border style and color, tap “Border style” or “Border color” below the icons. Choose your options, then tap the checkmark or “Done” to apply.

Removing Borders

  1. Select the cells that have borders you want to remove.
  2. Click the Borders icon in the toolbar (or go to Format > Borders).
  3. Choose “No borders” from the dropdown. All borders on the selected cells are removed.

Common Mistakes

  • Applying borders to the wrong range: If you select a range that includes empty cells, borders will appear on those empty cells too. Double-check your selection before applying.
  • Choosing “Outer borders” when you meant “All borders”: “Outer borders” only puts a border around the outside of the selected range, not between cells. If you want every cell to have its own border, choose “All borders.”
  • Forgetting to set the border style first: If you change the border style after applying a border, the existing border does not update. You must select the cells again and reapply the border with the new style.
  • Using borders instead of cell shading: Borders are for lines, not for filling a cell with color. Use the Fill Color icon (paint bucket) to shade cells.
  • Not realizing that borders print: If you print your sheet, borders will appear on paper. If you don’t want them, remove them before printing or set the print area to exclude those cells.

Tips

  • Use keyboard shortcuts: On Windows and ChromeOS, press Ctrl+Shift+7 to add all borders to the selected range. On Mac, use Cmd+Shift+7. (This shortcut works in the web version).
  • Create a custom border style once: If you frequently use a specific border style (e.g., a thick blue outer border), set it up once on a sample cell, then use the “Paint format” tool (the roller brush icon) to copy it to other cells.
  • Border color and style are remembered: Google Sheets remembers the last border style you used. So if you set a dashed red border, the next time you click the Borders icon, it will default to that style. This can be convenient, but also a surprise if you forget.
  • Apply borders to entire rows or columns: To border a whole row, click the row number on the left, then apply the border. This is faster than selecting many cells manually.
  • Use borders to create a table look: Combine outer borders with alternating fill colors (via the Fill Color icon) to make a clean, printable table.

Troubleshooting

If borders do not appear as expected, try these checks in order.

  1. Check your selection: Make sure you actually selected the cells you think you did. Click on a cell and look at the name box (top left) to see the range. For example, if it says “B2:D4,” you have selected from B2 to D4.
  2. Look for hidden borders: If you applied “All borders” but only see outer lines, it might be because the internal borders are the same color as the cell fill. Check if the fill color is white or a light color. Change the border color to a darker shade.
  3. Refresh the page: Sometimes the browser does not render changes immediately. Press F5 (or Cmd+R on Mac) to reload the sheet.
  4. Check if the sheet is protected: If the sheet or range is protected (by you or a collaborator), you cannot edit borders. Look for a lock icon on the tab. To remove protection, go to Data > Protect sheets and ranges, and delete the protection.
  5. Try the mobile app: If you are on a browser and borders are not applying, try the mobile app or vice versa. Sometimes a glitch is device-specific.
  6. Undo and redo: If you made a mistake, press Ctrl+Z (Cmd+Z on Mac) to undo. If you undid too much, press Ctrl+Y (Cmd+Y on Mac) to redo.

If none of these work, restart your browser or update it. Google Sheets is web-based, so a browser issue can affect formatting. You can also try opening the sheet in an incognito window to rule out extensions interfering.

Frequently Asked Questions

Can I add borders to only the inside of a selected range?

Yes. Choose “All borders” to add borders both outside and inside. If you want only internal lines (no outer border), you can apply “All borders” and then remove the outer border by selecting the range, clicking the Borders icon, and choosing “No outer border” (if available) or by applying a specific border to the outer edges with no border style. However, the simplest way is to apply “All borders” and then use the “Outer borders” option with a border color of white (or the same as the cell fill) to effectively hide the outer border, but that’s a workaround. The cleanest method is to apply “All borders” and then select the range and choose “No borders” for the outer edges—but that removes all borders. A better approach: apply “All borders,” then use the “Border style” to set the outer border to “None” (if your version has that option). In practice, most users just apply “All borders” and manually remove the outer border by selecting the range and using “No borders” on the outer edge—but that removes everything. Instead, apply “All borders,” then select the range, click the Borders icon, and choose “Outer borders” with a border color that matches the background (usually white). This visually hides the outer lines.

How do I make a thick border around a cell?

Select the cell, click the Borders icon, then at the bottom of the dropdown click “Border style” and choose a thicker line (like 4px or 8px). Then click “Outer borders” to apply. The thick border will appear around the cell.

Can I use a custom border color like a specific hex code?

Yes. Click the Borders icon, then click the color swatch (or paintbrush) next to “Border color.” At the bottom of the color palette, click the plus sign (+) to open a custom color picker. Enter your hex code (e.g., #FF0000 for red) and click OK. Then apply the border.

Will borders affect my formulas or data?

No. Borders are purely visual formatting. They do not change the value of cells, affect calculations, or interfere with sorting/filtering. They only change how the sheet looks.

How do I remove all borders from a sheet at once?

Select the entire sheet by clicking the rectangle in the top-left corner (where the row numbers and column letters meet). Then click the Borders icon and choose “No borders.” This removes all borders from every cell in the sheet.

Can I print borders?

Yes, borders print by default. If you want to ensure borders appear in print, you can also set the print area to include the bordered cells. To preview, go to File > Print (or press Ctrl+P) and check the preview. If borders do not show, make sure you are not using a border color that is too light to print (e.g., white).