Slug Generator
Convert text to a URL-safe slug with a chosen separator.
- Runs locally in your browser
- No upload required
Try it
Supported formats
Privacy
Runs entirely in your browser. Your input is never uploaded, stored, or sent to a third party.
Produced a 11 character(s) slug from 2 word(s).
How it works
- Normalised the text with Unicode NFKD.
- Removed combining marks so Latin diacritics become their base letters.
- Lower-cased the text.
- Replaced every run of non-alphanumeric characters with "-".
- Trimmed leading and trailing separators.
words.join(separator)- Only Unicode letters and numbers survive; other characters become the separator.
- The transform is idempotent: running it on its own output changes nothing.
Methodology
- Normalise to NFKD and strip combining marks to transliterate Latin accents.
- Optionally lower-case the text.
- Split on non-alphanumeric runs and join the surviving words with the separator.
- Trim leading and trailing separators.
Usage
- Paste or type the text to convert.
- Choose the separator and whether to lower-case.
- Run the tool and copy the generated slug.
Examples
These are examples, not current values: they use fixed inputs, while the interactive tool computes live results in your browser.
Basic title
{
"text": "Hello, World!",
"separator": "-",
"lowercase": true
}Accents transliterated
{
"text": "Café au lait",
"separator": "-",
"lowercase": true
}Underscore separator
{
"text": "Max retry count",
"separator": "_",
"lowercase": true
}Limitations
Where slugs are used
A slug is the human-readable part of a URL. Keeping it lower-case, ASCII where possible and separated by hyphens is the common convention for stable, legible links.
Frequently asked questions
- Which characters are removed?
- Every run of characters that is not a Unicode letter or number becomes one separator. Leading and trailing separators are trimmed.
- Does the generator resolve duplicate slugs?
- No. It produces the slug for the text you give it; the host application decides how to make slugs unique.
Sources
Send feedback
Tell us if this tool helped, report a problem, or suggest a tool. Only the message you type is sent — never the input you used in the tool.
Was this tool useful?
Prefer to write to us directly? See the contact page.