Home › Slug Generator
Slug Generator
Paste one title per line and get tidy, lowercase slugs ready for URLs and file names, with accents and symbols handled.
Results
- Count
- 1
- Longest slug (characters)
- 34
How it works
Special letters such as ß, æ, œ and ø are first replaced by their usual spellings. The text is then split into base letters and accent marks, and the marks are removed, so é becomes e. Everything that is not a letter or digit becomes one separator, repeated separators are merged and the ends are trimmed. A length limit cuts at a word boundary when it can.
Rules and details
ß → ss · æ → ae · œ → oe · ø → o · đ → d · ł → lAccents removed after Unicode normalization (NFD)Anything outside a-z and 0-9 becomes one separator; ends are trimmedOptional: keep letters of other alphabets with Unicode mode
Worked example
The title “Héllo Wörld! 10 Tips for Clean URLs” becomes hello-world-10-tips-for-clean-urls. With an underscore separator it becomes hello_world_10_tips_for_clean_urls, and limited to 20 characters it becomes hello-world-10-tips. The longest slug in the list has 34 characters.
Frequently asked questions
Should a slug contain accents?
Safe slugs use only a-z, 0-9 and hyphens. Browsers can show accents in URLs, but they are encoded behind the scenes and are harder to share and type.
Hyphen or underscore?
Search engines treat a hyphen as a word separator, which is why it is the common choice for URLs. Underscores suit file names and identifiers.
What about languages that do not use the Latin alphabet?
Tick “Keep letters of other alphabets” to preserve them. Otherwise, characters outside a-z are dropped, so a fully non-Latin title could produce an empty slug.
Tips
- Keep slugs short and descriptive, around three to six words.
- Do not change a published slug without adding a redirect from the old address.
- Dates and stop words such as “the” can often be left out.
Related tools
- Meta Title and Description Width CheckerMeasure the pixel width of a page title and meta description and preview truncation.
- Base64 and URL Encoder / DecoderEncode and decode Base64, Base64URL and percent-encoded URLs, UTF-8 safe.
- Regular Expression TesterTest a regex on your text, see every match, position and capture group.