Page titles are written for people, and people use capital letters, spaces, accents and punctuation freely. A URL slug cannot keep most of that. Type a raw headline into an address and you get something long, fragile and hard to share, full of encoded characters and gaps. So every slug involves a small act of translation: the title goes in, and a clean, lowercased, separated string comes out.
This guide explains exactly what happens to each kind of character in that translation, and how to check the result, using the free SEO Slug Generator on Ovatly. It covers spaces, punctuation, accented letters, special letters, and the honest limit of the process: non-Latin scripts are removed rather than transliterated.
Contents
- Quick answer
- Why titles cannot go into URLs as they are
- Spaces: the separator decision
- Punctuation: removed, with one exception that matters
- Accented and special letters: transliteration
- Scripts that are removed, not transliterated
- How to clean up a title, step by step
- Worked example: one headline, every rule at once
- Limitations
- Common mistakes
- FAQs
- Conclusion
Quick answer
When a title becomes a slug, it is lowercased, each space becomes the separator you chose (pick hyphens), punctuation is removed, and accented letters are transliterated into plain Latin ones, so é becomes e. A small table of special letters applies: ß becomes ss, æ becomes ae and ø becomes o. Characters from scripts such as Arabic, Chinese or Cyrillic are removed rather than transliterated. Do the conversion with the SEO Slug Generator, then read the result once before pasting it into your CMS, because a hyphen inside a word becomes a word separator too.
Why titles cannot go into URLs as they are
A URL has a restricted alphabet. Spaces are not allowed as they are, so browsers encode them, usually as %20, which makes the address unreadable. Capital letters create a second problem: many servers treat Coffee and coffee as different addresses, so a slug that keeps capitals invites duplicate and broken links. Accents and punctuation add more encoding, and some characters, such as ?, # and &, have structural meanings inside a URL and would break the address outright in a pasted title.
Spaces: the separator decision
Every space in the title becomes one separator character in the slug, and the generator offers two choices, hyphen and underscore. The choice is not cosmetic. Google has long recommended hyphens as word separators in URLs. Underscores are treated as joining characters in some systems, which can merge words: brew_best_coffee may be read as one joined term instead of three words.
So the practical rule is simple: choose the hyphen, and let each space in your title become one hyphen in the slug.
Punctuation: removed, with one exception that matters
Punctuation is removed: exclamation marks, question marks, apostrophes, commas, colons and brackets simply disappear, and the words around them join the normal flow of the slug.
The one exception to be aware of is the hyphen that already sits inside a word. It is not removed; it is treated as a word separator. A compound such as "Café-Quality" becomes two slug words, cafe and quality. That means a hyphenated brand name or technical term will be split, so check any title containing hyphens before you accept the generated slug.
Accented and special letters: transliteration
Accented Latin letters are transliterated, which means each one is replaced by its plain Latin equivalent: é becomes e, and the same logic applies across the accented letters of European languages, so a name like Café keeps its word, just without the accent mark. The result stays readable on any keyboard.
A few letters are not accents but distinct characters, and they follow a small table of their own: ß becomes ss, æ becomes ae and ø becomes o. Dropping ß entirely would change the word, while ss preserves its sound and spelling closely enough for a reader to recognise it.
Scripts that are removed, not transliterated
Transliteration has a boundary: it covers accented Latin letters plus that small table of special letters. Characters from scripts such as Arabic, Chinese or Cyrillic are removed rather than transliterated.
For a mostly Latin title with one foreign word, the effect is a missing word in the slug, which you will spot when you check it. For a title written entirely in one of those scripts, the generator has nothing to work with, and the honest move is to write the slug yourself from a Latin-script rendering of the title. No setting changes this, so plan for it if you publish in those languages.
How to clean up a title, step by step
- Open the SEO Slug Generator and type the page title or headline.
- Choose a hyphen or underscore separator. Choose the hyphen, for the joining-character reason above.
- Optionally remove stop words or set a maximum length. This is separate from character handling; skip it unless the slug is genuinely unwieldy.
- Copy the slug into your CMS or route definition, after one read-through: check any accented words, any hyphenated compounds and any non-Latin words, because those are the three places the translation surprises you.
Worked example: one headline, every rule at once
Take the headline "10 Tips for Café-Quality Espresso at Home!". The generated slug is 10-tips-for-cafe-quality-espresso-at-home. Walk it character by character: the capital letters are lowercased; each space becomes a hyphen; the é in Café is transliterated to e; the hyphen inside "Café-Quality" becomes a word separator, giving cafe and quality as separate words; and the exclamation mark is removed without leaving a gap.
The special-letter table works the same way: a title about a "Straße" café slugs ß as ss, and an "Æbleskiver" recipe starts with ae. A headline in Chinese would lose its characters entirely, your cue to write that slug by hand.
Limitations
The transliteration table is deliberately small: accented Latin letters and a few special letters, nothing more. It does not cover every European character with a perfect expansion, and it does not attempt Arabic, Chinese, Cyrillic or any other non-Latin script. The tool also works purely on the text you give it. It cannot know that a hyphenated word is a brand name you wanted kept whole, and it will not warn you that a removed character changed a word's meaning.
Finally, the generator produces a slug for a page you are creating. If the page already exists, changing its slug breaks its URL; the fix is a redirect from the old address, set up before the change.
Common mistakes
- Assuming accented letters survive into the URL. They do not; they are transliterated. Check that the transliterated word still reads correctly in your language.
- Pasting a non-Latin title and accepting the result. Characters from Arabic, Chinese or Cyrillic scripts are removed, so the slug may be empty or missing its key words. Write those slugs by hand.
- Choosing underscores as the separator. Underscores can be treated as joining characters and merge your words. Hyphens are the recommended separator.
- Missing the split compound. A hyphen inside a word becomes a separator. If a brand or product name must stay joined, fix the slug manually after generating it.
- Editing a live slug to fix one character. Even a one-character change creates a new URL and breaks the old one. Redirect first, or leave the working slug alone.
FAQs
What happens to spaces in a title when it becomes a slug? Each space becomes the separator you chose, a hyphen or an underscore, so the words stay separate in the URL. Choose hyphens: Google has long recommended them as word separators, while underscores are treated as joining characters in some systems.
What happens to accented letters such as é? They are transliterated into plain Latin letters, so é becomes e. A small table of special letters applies too: ß becomes ss, æ becomes ae and ø becomes o.
What happens to a title written in Arabic, Chinese or Cyrillic? Characters from those scripts are removed rather than transliterated. A title written entirely in one of those scripts would lose its words, so write the slug yourself from a Latin-script version of the title.
What happens to punctuation such as exclamation marks and apostrophes? Punctuation is removed. An exclamation mark simply disappears, and a hyphen that sits inside a word is treated as a word separator, so "Café-Quality" becomes the two words cafe and quality.
Can I fix the characters in a slug after the page is published? You can, but changing the slug of a page that already exists breaks its URL. Set up a redirect from the old address first, and check the new slug character by character before it goes live.
Conclusion
Character handling in slugs follows a short, predictable set of rules: lowercase everything, turn spaces into hyphens, remove punctuation, transliterate accented letters, expand the few special letters, and remove characters from non-Latin scripts. Run your title through the SEO Slug Generator, then spend ten seconds reading the result for the three known surprises: a transliterated word, a split hyphenated compound, and a word that vanished because it was written in a script the tool removes. That one check is the difference between a slug that merely looks clean and one that actually says what the page is about. More guides like this one live in SEO Tools.
Related guide: Keywords in URLs: Do Slugs Still Matter for SEO?.