How to embed Google Sheet in a web page

Embed Google Sheet IFrame into a web page. No coding required.

There are a number of reasons you may want to embed a Google Sheet spreadsheet onto a webpage. For example, if you wish to share some statistics on your personal or company blog so that people outside your organisation can view your data without directly going to the Google Sheet spreadsheet.

In this short tutorial we'll cover how to embed a Google Sheet spreadsheet in any web page using sheet2api, no coding required.

format_list_numbered 1. Prepare your Spreadsheet

The first row of each worksheet contains column names. Put data rows underneath it, and use a different worksheet for each category of data. Avoid duplicate column names. The first row becomes the field names in your API response and request bodies.

For example:

A B C D E
1 Name Favourite Thing Image
2 Bugs Bunny Carrots Bugs.png
3 Elmer Fudd Chasing Rabbits Elmer.png
4
Looney Tunes
The Simpsons
Sheet3

Each worksheet gets its own endpoint under the same Spreadsheet API. The default endpoint uses the first worksheet. Worksheet names are part of the URL, so use the generated API documentation to copy the right endpoint.

If a value must remain text, such as an ID with leading zeroes, format that cell as text in the spreadsheet and check the API response.

add_circle 2. Create Spreadsheet API

Create your Spreadsheet API using the link to your spreadsheet.

Create REST API from a Google or Excel Sheet

After clicking "Create", your new Spreadsheet API will be listed on the next page.

Your Spreadsheet APIs list in account

Great, that's the hard work done, on to the final step.

code 3. Copy the HTML snippet into your webpage

Click the "Embeddable Table" button on your Spreadsheet API. This will display a HTML snippet for embedding your spreadsheet.

Simply copy that HTML into your web page and you will see the live spreadsheet displayed. When your spreadsheet is updated, so will the spreadsheet embedded on your web page!

Snippet to embed Google Sheet onto a web page

check_circle It's as easy as that! 🎉

Need help? Feel free to reach out via our contact page.

Start using sheet2api now

Be up & running in seconds.

Start your 7-day free trial
check_circle 7-day free trial
check_circle Cancel anytime
Clara from sheet2api