Back to Actions
Updated
How to Generate a UUID in Shortcuts on iPhone and Mac
By Sindre Sorhus, who makes the Actions app
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
- Requires
- macOS, iOS, or visionOS 26 or later
- Privacy
- No personal data collected
- Updated
- June 2026
- US App Store rating
- 4.8/5 (709 ratings)
Without an app
On Mac, Shortcuts can run the uuidgen command of macOS:
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.
