Turn a title into a URL you will not regret later
LOCALA blog post called Café & Bakery: 5 Things to Know should not end up at /caf%C3%A9-%26-bakery%3A-5-things. This tool folds accents, drops punctuation, lowercases the rest and joins the words with a hyphen or underscore. Paste one title or a whole column of them; each line becomes one slug. A length limit keeps the result readable, and an ASCII-only switch removes letters that would otherwise be percent-encoded. Everything runs in the page, so unpublished titles stay unpublished.
How it works
- 01
Paste one title per line
A single title works, and so does a column copied from a spreadsheet. Empty lines are skipped so the output lines up with the titles that actually have content. The conversion is immediate, so you can paste a batch and watch the list build itself.
- 02
Choose the separator
Hyphens are the safer default: search engines treat a hyphen as a word boundary, while an underscore tends to join words into one token. Underscores are still common in analytics parameters and internal file names, which is why the option exists.
- 03
Decide about accents and alphabets
Accents are always folded, so café becomes cafe and naïve becomes naive. German ß becomes ss, æ becomes ae. With ASCII only enabled, Chinese, Japanese, Korean and Cyrillic letters are removed; with it disabled they stay, which produces readable URLs that browsers percent-encode.
- 04
Set a length and copy the list
A limit of 60 characters keeps a slug readable in a search result and in a chat message. The cut never leaves a trailing separator. Copy the whole column or download it as a .txt file; check for duplicates before publishing, because two similar titles can produce the same slug.
When to use it
Blog and news URLs
An editor writes 20 headlines in a spreadsheet. Paste the column, limit the length to 60, and the slug column is ready to import. Doing this by hand is where typos and inconsistent separators creep into a site.
Product page URLs
A shop imports products with names like Stainless Steel Bottle 750 ml. The slug becomes stainless-steel-bottle-750-ml, which is stable and readable. Avoid putting the price or the year into a slug, because both change.
Campaign and file names
Marketing needs utm_campaign values that match across tools. Generating them from the campaign names with an underscore keeps the values consistent, and removing punctuation prevents broken links in email clients.
Cleaning a sitemap export
An old sitemap contains URLs with %20 and encoded punctuation. Regenerating slugs from the page titles gives a cleaner list that can be compared with the current URLs before any redirect is planned.
Questions
Should a slug use hyphens or underscores?
For pages people read and search engines index, hyphens are the usual choice because they separate words. Underscores are more common in tracking parameters and file names where a tool splits on them. Pick one rule per site and keep it consistent.
Do I need to remove stop words like the or and?
Usually not. Removing them can make a slug harder to read and sometimes changes the meaning, and the length saved is small. Keep the words unless a specific style guide tells you otherwise; readability matters more than shaving three characters.
How are accented letters handled?
They are decomposed and stripped, so é becomes e, ü becomes u, and ç becomes c. A few letters are replaced by their conventional pairs: ß to ss, æ to ae, ø to o. The result works in every browser and does not need percent-encoding.
What happens to Chinese, Japanese or Korean titles?
With ASCII only off, the characters are kept, so the URL contains readable CJK text that browsers encode automatically. With ASCII only on, they are dropped, which can leave an empty slug. Transliteration to pinyin or romaji is a separate step and is not attempted here.
Is there an official length limit for slugs?
No, search engines do not impose a hard limit. Short slugs are easier to read, share and remember, and around 60 characters is a practical ceiling. Very long URLs still work, but they get truncated in some interfaces and look noisy.
Can I change a slug after publishing?
You can, but every old link stops working unless you add a 301 redirect from the old URL to the new one. For pages that already have traffic, either keep the slug or plan the redirect in the same release. Changing only the title is safer.
Does the tool make slugs unique?
No. Two titles that differ only in punctuation can produce the same slug, and the tool leaves that for you to see. Check the output column before import; most CMS platforms will append -2 automatically, which is worse than choosing a distinct slug yourself.
Is my text uploaded?
No. Conversion happens in the page with local JavaScript, and the download is created from the same in-memory text. There is no request carrying the titles and no history, so unpublished content stays in the tab.