How to Use the Slug Generator
Type or paste your text into the input field. The slug is generated instantly as you type. Choose a hyphen or underscore separator, toggle lowercase, and decide whether to keep numbers. Click Copy to grab the result.
WordPress Permalinks
Generate clean, SEO-friendly slugs for WordPress pages, posts, and custom post types.
URL Generation
Convert page titles or headings into URL-safe strings for any CMS or web application.
File and Folder Names
Create consistent, lowercase, hyphen-separated file and folder names for projects.
API Route Naming
Standardise API endpoint names and route identifiers from human-readable labels.
How It Works
The generator normalises your text client-side: it strips accents, removes special characters, collapses whitespace, and replaces spaces with your chosen separator. No data is sent to a server.
Accent Normalisation
Converts accented characters (e.g. é, ü, ñ) to their ASCII equivalents before slugifying.
Flexible Separator
Choose between a hyphen (-) for standard URL slugs or an underscore (_) for database keys and file names.
Live Output
The slug updates on every keystroke — no button needed, just type and copy.
Client-Side Only
All processing happens in your browser. Nothing is sent to or stored on a server.
Frequently asked questions
A slug is the part of a URL that identifies a specific page in a human-readable form, e.g. /my-awesome-blog-post. It should be lowercase, contain only letters, numbers, and hyphens, and have no spaces or special characters.
Google recommends hyphens for URL slugs as it treats them as word separators. Underscores are better suited for file names, database keys, and internal identifiers.
Yes. Accented characters like é, ü, and ñ are automatically converted to their closest ASCII equivalents before generating the slug.
No. All processing happens entirely in your browser. Nothing is uploaded or saved.
Building a product with URLs and slugs?
Userback lets your users leave feedback directly on any page — with screenshots and session context attached — so you can build better products faster.