Posted by João Martins on 13 Apr 2026

How to Send Form Data to Google Sheets with Node.js

Forward your Express form submissions to Google Sheets using Form2Sheet


Building a Node.js backend with Express? Form2Sheet lets you skip the database setup entirely. Just forward your form data to our API and it goes straight to Google Sheets, complete with email notifications.

Step 1: Prerequisites

The first step in integrating Form2Sheet is to subscribe either monthly or yearly.
Then, go to https://form2sheet.com and create your first spreadsheet.

Screenshot
(Email received after creating a spreadsheet)


Step 2: Building Your Node.js Form Handler

Set up an Express server that receives form submissions and forwards them to Form2Sheet using the Fetch API. Make sure to replace the $API_URL with the one you received in your email (check your spam folder as well).

const express = require('express');
const app = express();

app.use(express.urlencoded({ extended: true }));
app.use(express.static('public'));

app.post('/submit', async (req, res) => {
  const formData = new URLSearchParams(req.body);

  await fetch('', {
    method: 'POST',
    body: formData
  });

  res.redirect('/thanks.html');
});

app.listen(3000, () => console.log('Server running on port 3000'));


Step 3: Submitting the Form

In the GIF below, you can see how after submitting the form you check the results in your Spreadsheet.

Screenshot

Besides that, you and the respondent will receive a confirmation email with the data submitted.

Screenshot
Screenshot


And that's is! Simple as that. Aditionally, you can create Unlimited Spreadsheets, customize the Thank You page, add as many Custom Form Fields as you want and remove the Form2Sheet branding from the emails.

Screenshot


Conclusion

Congratulations! You can now go ahead and publish your custom form. It is now ready to start collecting responses. With Form2Sheet, the process is streamlined, and you can focus on obtaining valuable data without the hassle of complicated setups.

If this made you curious, go ahead and check our pricing below.


Related Guides