Shopify URL handles
How to remove “copy-of” and “-1” from Shopify URL handles in bulk
What you’ll need
Shopify’s free GraphiQL app (with read_products, write_products (pages: read_online_store_pages, write_online_store_pages; blog posts: read_content, write_content) access)
How to get this: Shopify’s free GraphiQL app
- Install it once from shopify-graphiql-app.shopifycloud.com: enter your store address, tick the access listed here, click Install and approve.
- Then open it any time from Apps › Shopify GraphiQL App in your admin.
Your new handles, or the clean-up you want (for example removing copy-of- and -1 from duplicated products)
Where these handles come from
- Duplicate a product and keep the suggested title “Copy of Linen Shirt”: the handle is copy-of-linen-shirt.
- Duplicate it with the same title, or create or import an item whose handle is taken, and Shopify adds -1, -2 and so on (linen-shirt-1).
- Some apps and imports leave -copy at the end instead. The same rule removes it.
- Renaming the title later doesn’t change the handle, so the address keeps copy-of- or the number.
Clean them up in bulk
- In the URL Handle Changer, pick Products (or collections, pages, blog posts) and run the step 1 query in the GraphiQL app.
- Paste the response. Every handle loads, with its title.
- Keep “Remove copy-of and -copy” and “Remove -1, -2 number endings” ticked, or choose “Make handles from titles”.
- Check the list: any new handle another item already uses is marked as a problem and left out.
- Download the backup, tick the two boxes, and run each batch in GraphiQL.
When the number is on purpose
Some handles end in a number that means something (a model number like router-5000, or a pack size like socks-3). The rule only strips one to three digits after a hyphen, so check the list before running it, or paste just the handles you want changed.
Related tools and guides
- Catalog Health Audit
Find duplicates and SEO gaps