To embed a Google Sheet in WordPress, open the sheet and click File > Share > Publish to web. Click the Embed tab, choose the whole spreadsheet or one sheet, click Publish, and copy the iframe code. In the WordPress block editor, add a Custom HTML block, paste the code, and update the post.
This guide covers the embed steps, customizing what the embed shows, keeping it current, and fixing a blank embed. The steps come from Google’s Make Google Docs, Sheets, Slides & Forms public help page and WordPress.com’s Embed from Google Docs guide.
How to Embed a Google Sheet in WordPress
- Open the spreadsheet in Google Sheets.
- Click File > Share > Publish to web.
- Click the Embed tab.
- Choose Entire Document or a single sheet.
- Click Publish, then confirm with OK.
- Copy the HTML code in the text box.
- In WordPress, edit the post or page and add a Custom HTML block with the block inserter (+).
- Paste the code, then click Preview and Update or Publish.
Result: Visitors see a read-only copy of your sheet inside the post. WordPress.com notes the embed may not look right inside the editor, so use Preview in a new tab to check it. The same Publish to web window also lets you get the embed code for a Google Slides presentation.

Publishing is not the same as sharing
This is the most common mistake: setting the sheet to “Anyone with the link can view” is not the same as publishing it. If you skip Publish to web, the embed may look fine to you because you’re signed in to Google, while visitors see a sign-in screen or an empty box.
How to Customize What the Embed Shows
Google says you can show or hide parts of an embedded spreadsheet by editing settings in the iframe’s URL on your site:
- gid= the sheet ID, to show a specific tab.
- range= the rows and columns to show, such as A1:B14.
- widget= true shows the sheet tabs at the bottom.
- headers= true shows row numbers and column letters.
- chrome= true shows the title and footer.
To change the size, edit the width and height numbers in the iframe code. For phones, try wrapping the iframe in a container set to 100% width with horizontal scrolling, so wide sheets don’t break your layout.

Keeping the Embedded Sheet Up to Date
- Automatic updates: Google says changes to the original sheet show up in the published version, though the update can take a few minutes.
- Turn off auto-updates: in Publish to web, open Published content & settings and uncheck Automatically republish when changes are made.
- Stop publishing: go back to Publish to web, open Published content & settings, and click Stop publishing. The embed stops working.
Privacy: What Visitors Can See
Google warns that publishing can make a file visible to everyone on the web, depending on your account settings, so don’t publish private or sensitive data. Visitors see cell values, formatting, and charts, but Google says people with view access can’t see or edit formulas. If you publish a chart, the data behind it is visible too.
Troubleshooting
- Visitors see a blank box or a sign-in prompt: the sheet was shared but not published. Use Publish to web.
- The embed doesn’t work on a free WordPress.com site: WordPress.com says embedding Google Docs files needs a Personal, Premium, Business, or Commerce plan.
- Publish to web is missing: on a work or school account, Google says your administrator may have turned off publishing.
- The embed is too small: raise the width and height values in the iframe code.
Frequently Asked Questions
Can visitors edit the embedded sheet?
No. Google says published spreadsheets appear without a toolbar, and visitors can’t edit them.
Should I use a plugin instead?
For one or two sheets, the built-in embed is enough. Table plugins can import Google Sheets data into native, searchable WordPress tables if you need sorting, filtering, or many sheets.
Related Guides
- How to share a Google Sheets file
- How to make a graph in Google Sheets
- How to freeze columns or rows in Google Sheets

Matthew Burleigh is the founder, head writer, and editor of Solve Your Tech, which he launched in 2012. He has written technology tutorials since 2008 and worked in IT since 2003, including small-business support, IT management, and consulting. He holds Bachelor’s and Master’s degrees in Computer Science from Arizona State University.
Matthew writes practical guides for Windows, iPhone and iPad, Microsoft Office, Outlook, Google apps, and Android. Solve Your Tech’s guides are tested on current devices or checked against official product documentation, with clear steps, sources, and update dates.
Read more about Matthew and how Solve Your Tech writes and updates its guides, or report a correction.