sodcalculator

10 Tech How-To

How to Insert a Table in Gmail

Guide 10-46489 · Updated · Step by step

Gmail’s compose window doesn’t have a built-in table button, so inserting a table requires a workaround. This guide shows you two reliable methods: using Google Sheets and using HTML code. Both let you add organized data, schedules, or comparisons directly in your email body. You’ll need a Gmail account and, for the first method, a Google account (which you already have).

What You’ll Need

  • A Gmail account (free)
  • A web browser (Chrome, Firefox, Safari, Edge)
  • For Method 1: Access to Google Sheets (free with your Google account)
  • For Method 2: A basic understanding of HTML table tags (copy-paste works too)

Step-by-Step

Method 1: Using Google Sheets (Easiest)

  1. Open Google Sheets: Go to sheets.google.com and create a new blank spreadsheet.
  2. Enter your data: Type your table content into the cells. For example, put headers in row 1 (like “Item”, “Price”, “Quantity”) and data in the rows below.
  3. Select the range: Click and drag to highlight all the cells that make up your table, including headers and data.
  4. Copy the selection: Press Ctrl+C (Windows) or Cmd+C (Mac), or right-click and choose “Copy”.
  5. Open Gmail and compose: Go to mail.google.com and click “Compose” to start a new email.
  6. Paste into the email body: Click inside the email body where you want the table, then press Ctrl+V (Windows) or Cmd+V (Mac). The table will appear with borders and formatting preserved.
  7. Adjust if needed: After pasting, you may see a small “Paste” icon at the bottom-right of the table. Click it and choose “Paste as table” if it didn’t paste as a table automatically. You can also resize the table by dragging its edges.

Method 2: Using HTML (For More Control)

  1. Write your HTML table: Create a simple HTML table. Here’s a basic template you can copy and modify:
    <table border="1" cellpadding="5" cellspacing="0" style="border-collapse: collapse;">
      <tr>
        <th>Item</th>
        <th>Price</th>
      </tr>
      <tr>
        <td>Apple</td>
        <td>$1.00</td>
      </tr>
      <tr>
        <td>Banana</td>
        <td>$0.50</td>
      </tr>
    </table>
  2. Copy the HTML code: Select all the code above and copy it.
  3. Open Gmail and compose: Start a new email as usual.
  4. Enable rich text formatting: In the compose window, click the three-dot menu (More options) at the bottom right, then select “Plain text mode” to toggle it off. If you see “Plain text mode” at the bottom, click it to switch to rich text.
  5. Paste the HTML: Click in the email body and press Ctrl+V (Windows) or Cmd+V (Mac). Gmail will render the HTML as a table.
  6. Preview and send: The table should appear with borders. You can adjust the border width or cell padding by editing the HTML before pasting.

Common Mistakes

  • Pasting into plain text mode: If Gmail is in plain text mode, pasting HTML will show the raw code, not a table. Make sure rich text mode is enabled.
  • Copying the entire sheet: When using Google Sheets, if you copy the whole sheet (including empty cells), you’ll paste a huge blank area. Always select only the cells with data.
  • Forgetting to include headers: A table without headers is confusing. Always include a header row to label your columns.
  • Using too many columns: Emails are often viewed on mobile devices. A table with more than 5-6 columns will be squeezed and hard to read.

Tips

  • Keep it simple: For most emails, a 2-4 column table is ideal. Complex tables with merged cells may not paste correctly.
  • Use Google Sheets for large tables: If you have a lot of data, build it in Sheets first. It’s easier to edit and sort before pasting.
  • Test before sending: Send a test email to yourself to see how the table looks on both desktop and mobile email clients.
  • Use inline styles for HTML: If you’re comfortable with HTML, add style="border: 1px solid #ccc; border-collapse: collapse;" to your table tag for a cleaner look.
  • Consider a screenshot: If the table is very complex, take a screenshot of it and insert it as an image instead. This ensures exact formatting.

Troubleshooting

  • Table doesn’t paste as a table: If pasting from Sheets results in just text, click the paste icon that appears and choose “Paste as table”. If that doesn’t work, try copying from Sheets again, making sure you’ve selected the cells properly.
  • HTML code shows instead of a table: This means Gmail is in plain text mode. Click the three-dot menu in the compose window and uncheck “Plain text mode”. Then delete the pasted code and paste it again.
  • Table looks different in the recipient’s email: Different email clients (Outlook, Yahoo, etc.) render tables differently. Use simple borders and avoid complex styling. Test by sending to a few different addresses.
  • Table is too wide: If the table overflows the email width, try reducing the number of columns, shortening cell content, or using a smaller font size in the HTML (e.g., style="font-size: 12px;").
  • Can’t edit the table after pasting: Once pasted, the table becomes static. To edit, go back to your source (Sheets or HTML) and make changes, then copy and paste again.

Frequently Asked Questions

Can I insert a table directly in the Gmail mobile app?

No, the mobile app doesn’t support pasting tables from Sheets or HTML. Your best option is to create the table on a computer and send it, or use a screenshot image.

Will the table formatting stay intact when the recipient opens it?

Most of the time, yes. However, some email clients (like Outlook) may strip certain formatting. Stick to basic borders and colors for best compatibility.

Can I add a table in Gmail’s confidential mode?

Yes, confidential mode doesn’t affect how you insert content. You can paste a table just like in a normal email.

Is there a way to create a table without using Google Sheets or HTML?

No, Gmail doesn’t have a native table tool. The two methods above are the most common workarounds. You could also use a word processor (like Google Docs) and copy-paste from there, but the result is often less reliable.

Why does my table lose its borders when pasted?

This can happen if you copy from a source that doesn’t have explicit borders, or if Gmail’s paste option defaults to “Paste as plain text”. Use the paste icon to choose “Paste as table” or add borders in your HTML code.

Can I merge cells in a Gmail table?

Merging cells is not supported when pasting from Sheets. If you need merged cells, you’ll have to use HTML with colspan or rowspan attributes, but be aware that some email clients may not render them correctly.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →