Slug Generator
Turn any title or phrase into a clean, URL-friendly slug for permalinks, paths, and filenames.
Turned into a slug live as you type. Nothing leaves your browser.
Options
How to create a URL slug
Type your title
Paste or type the title or phrase into the text box. The slug builds itself live underneath as you go.
Choose a separator
Pick Hyphen for URLs and permalinks, or Underscore if the slug is destined for a filename or database key.
Keep or drop lowercase
Lowercase is on by default for link-safe slugs. Turn it off if you need the original capitalisation preserved.
Copy the slug
Click Copy to clipboard and paste the finished slug into your CMS, router, or file dialog.
Why use this tool
Accents flattened to plain letters
Unicode normalisation strips diacritics before slugging, so café becomes cafe and señor becomes senor without manual edits.
Hyphen or underscore, your call
Hyphens are the convention for web URLs; underscores suit filenames and identifiers. One click switches between them.
No doubled or dangling separators
Consecutive punctuation collapses into a single separator, and separators at the start or end of the slug are trimmed off.
Lowercase by default, optional when not
The slug is lowercased for consistency out of the box, with a toggle to keep the source capitalisation intact.
Private, instant, free
Slugs are built on your device as you type. Nothing is uploaded, no account exists, and there is no limit on use.
About this tool
This slug generator turns a human-readable title into a string that is safe to put in a URL. It first decomposes accented characters and strips the accent marks, which converts letters like é and ñ to their plain ASCII equivalents. It then replaces every run of characters that is not a letter or digit (spaces, punctuation, symbols, emoji) with your chosen separator, trims any separators left clinging to the ends, and lowercases the result unless you switch that off. The output is only ever ASCII letters, digits, and your separator.
Slugs show up anywhere a name has to double as an address: blog post permalinks, product and category URLs, documentation anchors, image filenames before upload, and keys in a CMS. Consistent slugs matter for SEO too, since search engines read hyphenated words in a URL, and messy or duplicated separators make links look untrustworthy. Being able to preview the slug live while editing the title means you can rephrase until the URL reads well.
Your titles never leave the page; the whole transformation is local string processing. If you only need diacritics removed while keeping spaces and punctuation, use remove accents instead. For percent-encoding query strings or full URLs rather than building slugs, reach for the URL encoder, and case converter handles kebab-case identifiers that should keep their exact wording.
Frequently asked questions
- What is a slug?
- A slug is the part of a URL that identifies a page in a human-readable way, like "my-blog-post" in example.com/blog/my-blog-post. Slugs use lowercase letters, numbers, and hyphens so they are clean, readable, and safe to put in a link.
- How does the slug generator work?
- Type or paste a title or phrase and the slug updates live as you type. Letters and numbers are kept, anything else (spaces, punctuation, symbols) is replaced with your chosen separator, and the result is lowercased by default. Click the copy button to copy it to your clipboard.
- Is my text uploaded anywhere?
- No. The slug generator runs entirely in your browser. Your text never leaves your device, never touches a server, and is not stored or logged.
- Does it handle accents and symbols?
- Yes. Accented characters like "café" are normalised to their plain equivalents ("cafe"), and any symbols or punctuation are stripped out and replaced with your separator, so you always get a clean, link-safe slug.
Related tools
URL Encode & Decode
Percent-encode text for URLs and decode it back, both directions.
Accent & Diacritic Remover
Strip accents and diacritics from text to get clean, plain ASCII letters.
Add Line Numbers
Prefix every line of your text with a number. Set where the count starts, choose a separator, pad with leading zeros, and skip blank lines.
Alternating Case Generator
Turn text into aLtErNaTiNg caps, the mocking SpongeBob style.
Case Converter
Switch text between UPPERCASE, lowercase, Title Case, camelCase, snake_case, kebab-case, and more.
Email Extractor
Pull every email address out of any text, then deduplicate, sort, lowercase, and copy the clean list.