Website Form to Google Sheet

Connect your web forms directly to your spreadsheet - no backend required.

In this tutorial, we'll show you how to connect a web form directly to your Google Sheet spreadsheet.

When users submit the form, their data will be automatically saved to your spreadsheet - no backend 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

As per the video below:

  1. Share & Copy the link to your Google Sheet.
  2. Create a Spreadsheet API using that link.
  3. Proceed to the next step.

code 3. Create Website Form

Follow these steps to create your form:

  1. Go to Your Account
  2. Under your Spreadsheet click "Website Form to Sheet"
  3. Copy the HTML snippet
  4. Paste the HTML into your web page

play_circle_outline Try it Live

See a live example and experiment with the code:

launch Try out this example on CodePen

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