You will build a small notes web app that saves each note as a row in a Google Sheet, then publish it as a link you can open in any browser. It suits beginners who know a little HTML and JavaScript. All you need is a free Google account.
YouTube video: Build Your Own Notes App Using Google Apps Script & Google Sheets | Full Tutorial #google
Caption availability is unknown. Check the CC control in the YouTube player.
- Video length
- 4 min 1 s
- Time to do it
- 45 minutes
- Difficulty
- Medium
- Steps
- 9
What you need
Steps
Create a new Google Sheet and rename the first tab to Notes. In row 1, type the headers Timestamp, Title and Note so the columns match the order your script will write.
Open Extensions, then Apps Script. This opens a script editor already linked to your spreadsheet, so the code can read and write to it without extra setup.
In Code.gs, write a doGet function that returns HtmlService.createHtmlOutputFromFile('Index'). Call setTitle('Notes') and addMetaTag('viewport', 'width=device-width, initial-scale=1') so the page fits phone screens.
Add a saveNote function that takes title and note as arguments. Use SpreadsheetApp.getActiveSpreadsheet().getSheetByName('Notes') and call appendRow with new Date(), the title and the note.
Create an HTML file named Index in the editor. Add a text input for the title, a textarea for the note, a Save button and an empty div where the saved notes will appear.
In a script tag inside Index.html, call google.script.run.saveNote(title, note) when the button is clicked. Clear the fields after the call succeeds so you can type the next note straight away.
Add a getNotes function on the server that returns the sheet values with getDataRange().getValues(). Call it on page load and loop through the rows to build the note list in your div.
Click Deploy, then New deployment, and choose Web app as the type. Set Execute as to Me and Who has access to Anyone, click Deploy and approve the permission prompt.
Copy the web app URL and open it in a new tab. Save a test note, then check the Notes tab in your sheet to confirm a new row appeared with the correct date, title and note.
Tips and common mistakes
After you edit the code, deploy a new version or the live URL keeps running the old one.
Keep the header row and appendRow order in the same sequence, or your columns will shift.
Use LockService around appendRow if several people will save notes at the same time.
Test with the /dev URL while building so you always see your latest code.
Questions
Do I need to pay for anything?
No. Apps Script and Sheets are free with a Google account, and small personal projects stay well inside the free quota.
Why does my web app show an old version after I change the code?
The live URL points to a fixed deployment version. Open Deploy, then Manage deployments, edit the current one and deploy a new version.
Can other people use my notes app?
Yes, if you set Who has access to Anyone when deploying. They will see the app as you, but the data still lands in your sheet.
The notes are drafted automatically from video details and general task knowledge. How the guide was prepared
Report a correction


