Standalone Scripts Stay organized with collections Save and categorize content based on your preferences.
Page Summary
Standalone scripts are not bound to specific Google Workspace files like Sheets or Docs and are found in Google Drive.
You can easily create a standalone script by visiting
script.google.comor through Google Drive.Functions within a standalone script can be executed directly from the script editor.
Standalone scripts are often used as utility scripts or can be deployed as web apps or triggered automatically.
For larger projects, consider alternative development environments instead of Apps Script standalone scripts.
A standalone script is any script that is notbound to a Google Sheets, Docs, Slides, orForms file. These scripts appearamong your filesin Google Drive.
Creating a standalone script
The easiest way to create a standalone script is to visitscript.google.comand at the top left, clickNew project.
You can also create standalone scripts from Google Drive. Go toGoogle Driveand clickNew > More > Google Apps Script.
Running a standalone script
To run a function from the script editor, at the top, select the name of the function you want to execute and clickRun.
Using a standalone script
Many standalone scripts are utility scripts — for example, tosearch your Google Drive for old files whose name contains "untitled"so that you can delete them.
A standalone script can also be deployed as aweb appor set up to run automatically from aninstallable trigger.
Apps Script standalone scripts are suitable for lightweightadd-on development for yourself, your team, or yourorganization. For larger projects, consider building a Google Workspaceadd-on on adifferent runtimeenvironment.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-11 UTC.