Back to Actions
Updated
How to Generate a UUID in Shortcuts on iPhone and Mac
With Actions
- Install Actions, and open it once.
- In your shortcut, add the “Generate UUID” action of Actions. It has no options.
- Use its result, “UUID”, in the next action, like in the name of a file, or as the ID of a new row in a table.
Each run gives a new UUID, in capital letters with hyphens.
Get Actions
Additional actions for the Shortcuts app
Free
- Platforms
- macOS, iOS, visionOS
- Requires
- macOS, iOS, or visionOS 26 or later
- Category
- Utilities
- Released
- October 2021
- Privacy
- No personal data collected
- Updated
- June 2026
- Version
- 4.2.0
- Size
- 29 MB
- US App Store rating
- 4.8/5 (529 ratings)
Without an app
On Mac, Shortcuts can run the uuidgen command of macOS:
- In your shortcut, add the “Run Shell Script” action.
- Type
uuidgenin the action. - If the shortcut cannot run the script, choose “Shortcuts › Settings”, click “Advanced”, and turn on “Allow Running Scripts”.
The result is the same kind of UUID. This is fine for a shortcut that only runs on your Mac. iPhone and iPad have no “Run Shell Script” action, so a shortcut that must also run there needs the action of Actions.
