Setup & site building · Guide
How to Add a Table in WordPress

Short answer
Add a table in WordPress with the built-in Table block: open the post or page, add the block, set the rows and columns, and type into the cells. Style it with the Default or Stripes style and a header row. For sorting, search, pagination or spreadsheet imports, use the TablePress plugin instead.
Key takeaways
- The Table block is built into WordPress: add it from the block inserter or type /table in an empty paragraph.
- Fixed width cells have been turned on by default for new Table blocks since WordPress 6.6.
- TablePress 3.5, released 19 November 2026, needs WordPress 6.7 or higher and PHP 7.4 or newer.
- TablePress imports and exports Excel, CSV, HTML and JSON files, and adds sorting, pagination and filtering.
- Tables are for tabulated data, not page layout; WordPress.org points to the Columns block for layout.
What is the fastest way to add a table in WordPress?
Use the built-in Table block in the post or page editor, which needs no plugin and takes about a minute.
Open the post or page, add a Table block, pick the number of columns and rows, then type into the cells. WordPress.org's Table block documentation says you can add the block from the block inserter or type /table in an empty paragraph as a shortcut.
The block suits small tables such as price lists, feature comparisons and schedules. For a large data set that visitors need to sort or search, a table plugin is the better tool, as explained below.
How do you add a table with the Table block?
Add a Table block, enter the column and row counts, click Create Table, then type into each cell.
Follow these steps:
- Open the post or page in the editor.
- Click the add block button and choose the Table block, or type
/tablein an empty paragraph. - Enter the number of columns and rows, then click Create Table.
- Click a cell and type your content.
Both figures default to 2 when the block first opens, so change them before you click Create Table. You can add or remove rows and columns later, so an early mistake costs little.
The block has no styling by default, so it shows as a plain grid with borders. You can change that with the style settings covered below.
How do you add or remove rows and columns?
Click a cell, open the Edit table menu in the block toolbar, and choose to insert or delete a row or column.
The Edit table menu lets you insert a row or column before or after the selected cell, and delete a row or column. WordPress.org's Table block documentation lists these as the block's row and column controls.
You can also move the whole block with the drag handle or the arrow icons in the toolbar. The toolbar also holds alignment, caption, bold, italic and link controls for the text inside cells.
If you paste a table from a spreadsheet, WordPress turns it into a Table block with the content kept. Check the pasted cells after, since merged cells and heavy formatting from the spreadsheet may not carry over cleanly.
How do you turn on a header or footer row?
Select the Table block, open the block settings panel, and switch on the Header section or Footer section.
A header row marks the first row as headings, which helps readers and screen readers tell labels from data. A footer row does the same for a final row, such as totals at the foot of a price list.
The settings panel also offers a fixed width option, which makes every column the same width instead of sizing columns to their content. WordPress.org's Table block documentation notes that fixed width cells have been turned on by default since version 6.6.
Turn the header row on for any table where the first row holds labels. Leave it off for a simple list where the first row is data like the rest.
How do you style a table in the block editor?
Pick the Default or Stripes style, then set text color, background color, font size and borders in the block settings panel.
The Stripes style gives alternating rows different background colors, which makes long tables easier to read. The Default style keeps a plain background with borders around the cells, as described in WordPress.org's Table block documentation.
The block settings also offer color, typography, size and border controls. You can change the font family, font size, line height, padding and border width for the whole table from that panel.
For one-off styling, the Advanced settings hold an HTML anchor, extra CSS classes and an Additional CSS field. The guide to removing unused CSS in WordPress explains why keeping custom CSS small matters for page speed.
When should you use a table plugin instead of the Table block?
Use a plugin when visitors need to sort, search or page through the data, or when the table is large and changes often.
The core Table block cannot sort columns, filter rows or paginate, and it has no import or export. A plugin adds those features, plus a spreadsheet-like editor that is easier to use for a table with dozens of rows.
TablePress is the most used option in this category. Its site states that it is the most popular and highest-rated WordPress table plugin, and it lists sorting, pagination and filtering as features you can switch on per table, as shown on TablePress.
Other signs you need a plugin: the same table appears on several pages, the data comes from a spreadsheet, or the table needs math formulas in its cells. TablePress supports Excel-like formulas, combined cells and images or links inside cells.
| Feature | Table block | TablePress |
|---|---|---|
| Sorting, filtering and pagination | No | Yes, per table |
| Import and export | No | Excel, CSV, HTML and JSON |
| Math formulas in cells | No | Yes |
| Spreadsheet-like editor | No | Yes |
| Embed options | Block only | Block, shortcode or template tag |
How do you add a table with TablePress?
Install TablePress, create the table under TablePress in the dashboard, fill in the cells, then embed it with the TablePress block or a shortcode.
Follow these steps:
- Go to Plugins, then Add New, search for TablePress, and install and activate it.
- Go to TablePress, then Add New Table, and give the table a name.
- Set the number of rows and columns, then click Add Table.
- Type your data into the spreadsheet-like editor and click Save Changes.
- Open the post or page, add the TablePress table block, and pick your table.
TablePress 3.5 was released on 19 November 2026 and needs WordPress 6.7 or higher and PHP 7.4 or newer, according to TablePress. If your site runs an older WordPress version, update first; the guide to checking your WordPress version shows where the version appears.
You can also embed a table with a shortcode in the classic editor or a template tag in a theme file. The block route is the simplest, since it shows a preview of the table in the editor.
How do you import a table from a spreadsheet?
In TablePress, open Import a Table, upload the file, pick Add as a new table, and click Import.
TablePress imports Excel, CSV, HTML and JSON files, and it exports tables back to the same formats, as listed on TablePress. That round trip lets you edit a table in a spreadsheet and bring it back into WordPress without retyping.
For the core Table block, copy the cells from your spreadsheet and paste them into the editor, and WordPress builds a Table block from them. This works for a one-off table, but the pasted table has no link back to the spreadsheet.
Keep a copy of the source file after import. If the table needs a large update later, edit the spreadsheet and re-import it rather than fixing dozens of cells by hand in the editor.
How do you make a table look right on phones?
Keep the column count low, switch off fixed width cells so columns can shrink, and check the table on a narrow screen before you publish.
Wide tables with many columns are the most common mobile problem. A table with six or seven columns will either squeeze its text or push past the edge of a phone screen.
Cut columns that add little, shorten cell text, and let columns size to their content instead of forcing equal widths. The wide width and full width alignment options can help on desktop, but WordPress.org's Table block documentation notes that your theme must enable them before they appear.
Test the page on a real phone or with your browser's narrow window. If the table still overflows, split it into two smaller tables or move the detail into a linked page.
What mistakes should you avoid?
Do not use tables for page layout, do not build tables with too many columns, and do not skip the header row on a data table.
WordPress.org's Table block documentation states that tables are best used for tabulated data rather than page design, and it points to the Columns block for layout. A layout table is hard to read on phones and hard for screen readers to follow.
Other mistakes to avoid:
- Pasting a table from Word without checking for stray formatting in the cells.
- Leaving the header row off, so readers cannot tell which column is which.
- Typing prices or dates in different formats down the same column.
- Adding a table plugin for one small table that the Table block could hold.
Before you publish, preview the page, click every link inside the table, and read the table on a phone. A plugin such as TablePress adds features, so check whether it is still needed before you keep it; the guide to what a WordPress plugin is explains how plugins add to your site.
Frequently asked questions
Do I need a plugin to add a table in WordPress?
No. The Table block is built into the WordPress editor and needs no plugin for a basic table. You only need a plugin such as TablePress when you want sorting, filtering, pagination, imports or a spreadsheet-style editor.
How do I make a WordPress table sortable?
The core Table block has no sorting or filtering. To let visitors sort a column or search the table, use TablePress and switch on sorting and filtering for that table. Those features are set per table on its edit screen.
Can I import a table from Excel into WordPress?
TablePress imports Excel, CSV, HTML and JSON files from its Import a Table screen. For the core Table block, copy the cells from your spreadsheet and paste them into the editor, and WordPress builds a Table block from them.
How do I add a header row to a WordPress table?
Yes, by switching on the Header section in the Table block settings. A header row marks the first row as headings, which helps readers scan the table and helps screen readers tell labels from data.
Why does my WordPress table look bad on mobile?
Use fewer columns, switch off fixed width cells so columns can shrink to their content, and preview the page on a phone. A table with many columns will squeeze its text or run past the edge of a small screen.
Sources
- Table block WordPress.org
- Plugin Information TablePress
- How to Create a Table in WordPress Jetpack
- How to Easily Create Tables in WordPress with TablePress Kinsta
Is your product missing, or something out of date?
Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.
Thanks — we review requests within 3 business days.
Related guides
About the editors
Researched from the primary sources listed above and checked against our editorial rules before publishing.


