Shopify calls its URL slugs 'handles': lowercase, hyphen-separated, with underscores allowed and a 255-character ceiling. This page generates handles by those rules from any product title.
FAQ
Shopify appends -1, -2, … to duplicates automatically. Generate the base handle here; Shopify handles collisions on save.
Handles only allow lowercase letters, digits, hyphens and underscores — '100% Cotton' becomes 100-cotton, which is exactly what Shopify itself would store.
How it works & more
Shopify calls its URL slugs 'handles': lowercase, hyphen-separated, with underscores allowed and a 255-character ceiling. This page generates handles by those rules from any product title.
FAQ
Shopify appends -1, -2, … to duplicates automatically. Generate the base handle here; Shopify handles collisions on save.
Handles only allow lowercase letters, digits, hyphens and underscores — '100% Cotton' becomes 100-cotton, which is exactly what Shopify itself would store.