Back to Actions
Updated
How to Remove Duplicates from a List in Shortcuts on iPhone and Mac
With Actions
- Install Actions, and open it once.
- In your shortcut, add the “Remove Duplicates from List” action below the action that makes the list.
- On iPhone, touch and hold the “List” field, and select the variable that has the list. Do not tap the field quickly.
- Run the shortcut. The result, “Deduplicated List”, has each item one time.
Tips
- For the lines of a text, use the “Remove Duplicate Lines” action.
- If Shortcuts says that it “couldn’t convert from Text to NSString”, change the preview of the result to the list view. This is a bug in the Shortcuts app.
- To put the list in order after that, use the “Sort List” action.
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
The Shortcuts app has the “Repeat with Each”, “If”, and “Add to Variable” actions. With them, you can build a loop that goes through the list and adds an item to a new variable only when the variable does not have it yet.
This is more actions, and you must build it again in each shortcut that needs it. For one shortcut with a short list, it can be enough.
