URL Slug Generator
Paste a title and get a lowercase slug for a URL path. Choose whether leftover letters must be ASCII, or whether letters from other scripts should stay in the slug.
Enter the title
Copy the slug
How to use Slug Generator
- Enter a titleType or paste the heading you want in the URL. New lines and punctuation become separators.
- Choose ASCII or other scriptsASCII mode strips Latin diacritics (Café becomes cafe) and drops letters that are not Latin or digits. The other mode keeps letters such as é, 你好, or Москва.
- Copy the slugThe slug updates as you type. Copy it, or change the separator and an optional maximum length.
Limits and how it works
- The title can be at most 10,000 characters. An optional maximum slug length can be at most 2,000 characters.
- ASCII mode does not transliterate non-Latin scripts. Unicode mode keeps letters but does not percent-encode them.
- The result is a path segment, not a complete URL, and it is not a live check that a path is unique on your site.
How the slug is built
A slug is the path segment of a URL that comes from a title, such as hello-world. This page lowercases the input, treats any run of characters that are not letters or digits as a single separator, and trims extra separators at the ends. The default separator is a hyphen; an underscore is optional. If you set a maximum length, the slug is cut at a separator when one falls inside that limit, instead of mid-word when possible.
In ASCII mode, typographic Latin letters such as ß, æ, ø, and ł are folded to ASCII, then the string is normalized with Unicode Normalization Form KD (NFKD) and combining marks are removed, so Café becomes cafe. That folding follows Unicode Standard Annex #15, Unicode Normalization Forms, at unicode.org/reports/tr15/. The remaining characters are limited to ASCII letters, digits, and the chosen separator, which are unreserved in RFC 3986, Section 2.3, “Unreserved Characters,” at rfc-editor.org/rfc/rfc3986#section-2.3.
ASCII mode does not transliterate Chinese, Japanese, Korean, Arabic, Cyrillic, or other non-Latin scripts into Latin letters. Those characters are removed, and if nothing remains the page reports that no slug could be built and suggests the mode that keeps letters from other scripts. That Unicode mode still does not percent-encode the slug; use the URL encoder if you need percent-encoding. kebab-case in the case converter joins identifier words with hyphens but does not fold accents or offer this ASCII versus letters choice.
Frequently asked questions
How is this different from kebab-case in the case converter?
The case converter’s kebab-case option turns each line into a code-style identifier and keeps letters such as é or 你. This page is for a single URL slug: it can fold Latin accents to ASCII, reject a title that would leave an empty ASCII slug, and optionally shorten the result at a separator.
Does ASCII mode transliterate every language?
No. It only folds a small set of typographic Latin letters and strips combining marks after NFKD. It will not invent pinyin, romaji, or other transliterations. Use the mode that keeps letters, or write a Latin form yourself.
Can I use this for camelCase variable names?
This tool does not split camelCase or PascalCase identifiers. For code cases, use the case converter.
Is the title uploaded?
No. The slug is built in your browser. Nothing you type is sent to a server.
Related tools
All toolsCase Converter
UPPERCASE, lowercase, Title Case, Sentence case, camelCase, snake_case and more.
URL Encoder / Decoder
Percent-encode or decode URLs, query strings and form values.
Hreflang Tag Generator
Build hreflang HTML tags and sitemap entries from language and region URLs.
Meta Tag Generator
Build title, description, Open Graph and Twitter card tags.