A text-to-slug converter turns a title or phrase into a lowercase URL-style identifier, with this tool limiting the generated value to 1–200 Unicode code points.
A slug is the compact label that identifies a resource inside a larger system. It might be the path segment in a draft URL, the label on a content record, or the stem of a filename. The output is only the slug segment: it does not include a domain, path slash, file extension, or percent encoding.
Use Text To Slug when you need a bounded slug for a draft URL, filename, anchor, or CMS field. Its rules are explicit, and processing happens locally in the browser.

What text to slug conversion actually does
Text-to-slug conversion is controlled character cleanup rather than language translation. The order of operations determines the result: the input is validated, normalized, lowercased, filtered, divided into separator runs, trimmed, and then limited to the selected maximum length. This sequence also explains why an accented character may disappear in ASCII mode while a non-Latin character survives in Unicode mode.
| Stage | Rule | Effect |
|---|---|---|
| Input check | Empty input, input over 100,000 UTF-16 code units, and malformed UTF-16 containing an isolated surrogate are rejected. | Invalid or oversized input does not produce a misleading preview. |
| Normalization | Unicode NFKD normalization runs first, combining marks are removed, and letters are converted to lowercase. | Many accented Latin characters naturally reduce to an ASCII base. |
| Character filter | ASCII mode keeps a–z and 0–9. Unicode mode keeps characters classified as Unicode letters or numbers. | The selected mode determines which scripts can remain. |
| Separator cleanup | Each consecutive run of spaces, punctuation, symbols, or disallowed characters becomes at most one selected separator. | Leading and trailing separators are removed. |
| Length limit | The generated value can contain 1–200 Unicode code points, with truncation applied after conversion. | The limit may cut through an otherwise complete word. |
| Empty result | If no usable characters remain, the tool returns an explicit error. | It does not present an empty value as a valid slug. |
In ASCII mode, a letter that does not decompose to an ASCII base is removed as part of its surrounding separator run rather than replaced with an approximate Latin spelling. Existing hyphens and underscores are treated as boundary characters, so mixed separators normalize to whichever separator you selected.
Create a slug from a title
- Enter the source text. Paste the title or phrase into the input field. The field accepts up to 100,000 UTF-16 code units, while empty or malformed input is rejected.
- Choose the conversion rules. Select a hyphen or underscore, set the maximum length from 1 through 200 Unicode code points, and decide whether Unicode mode should retain non-Latin letters and numbers.
- Create and inspect the slug. Generate the result, then examine the preview character by character and check the displayed length. Pay particular attention to accents, scripts, separator runs, and any truncation. Editing any field clears the old result, so create a new slug after making a change.
- Download the exact result. Save the generated value as a UTF-8 plain-text file. The download uses a temporary Blob URL that is revoked immediately after the browser begins the transfer.
Treat the preview as a candidate identifier for the destination system rather than as a published URL. The converter creates the slug segment; the CMS, router, editor, or filesystem remains responsible for how that segment is assembled and validated.
Choose ASCII or Unicode for the destination
The character mode is the most consequential option because it determines whether the slug can carry non-Latin language identity or only portable ASCII characters.
| Feature | ASCII mode | Unicode mode |
|---|---|---|
| Retained core characters | Lowercase a–z and digits 0–9 after normalization. | Characters classified by the browser as Unicode letters or numbers. |
| Non-Latin scripts | Not transliterated; letters without an ASCII base are removed. | Chinese, Arabic, Cyrillic, Greek, and other scripts can remain. |
| Accent handling | Many accented Latin characters reduce naturally under NFKD. | The same NFKD and combining-mark rules apply. |
| Portability | Generally more portable across older tools that lack Unicode support. | Preserves language identity, but copied URLs may appear percent-encoded in browsers. |
| Main trade-off | Some titles can lose their script entirely or produce an error. | The destination must be able to handle Unicode identifiers. |
Both modes use the same lowercase, separator, and truncation rules. Search engines can handle Unicode URLs, but a browser may display a percent-encoded form when a Unicode slug is copied between systems. ASCII mode favors portability, while Unicode mode preserves the original language identity. Choose according to the actual CMS, router, analytics, and editorial policy rather than assuming one mode is always preferable.
Why accents change without language transliteration
The transformation follows Unicode normalization rather than a hand-written language dictionary. The MDN String.normalize reference and Unicode Standard Annex #15 describe the normalization framework used by the browser.
With a hyphen selected, “Crème brûlée” becomes “creme-brulee” in ASCII mode. This happens because Unicode normalization decomposes many accented Latin characters, the tool removes the resulting combining marks, and lowercase conversion completes the reduction. The result comes from the browser’s Unicode data rather than a custom list of French replacements.
That distinction matters for other languages and symbols. The tool does not convert Chinese characters to Pinyin, Cyrillic to Latin, the German sharp s to “ss,” or an ampersand to the word “and.” Such mappings require language choices and reference tables that can produce unexpected results. In Unicode mode, supported non-Latin letters remain without being given an invented Romanized spelling.
Apply the length limit without surprises
The input and output limits use different units. Input can contain up to 100,000 UTF-16 code units, while the maximum output length is 1–200 Unicode code points. They should not be treated as interchangeable measurements.
- Conversion happens before truncation. Normalization, filtering, separator collapsing, and trimming are completed first.
- The final word is not protected. The tool does not extend or shorten the result to preserve a complete last word.
- A trailing separator is removed. If the retained portion ends with the selected separator, that final separator is discarded.
- Surrogate pairs remain intact. Truncation counts code points and never cuts a UTF-16 surrogate pair in half.
Malformed UTF-16 containing an isolated surrogate is rejected before normalization. Ordinary text entered or pasted through a browser is normally well formed, but this validation keeps the preview and UTF-8 download encoder from disagreeing through replacement characters.
Publishing checks the converter cannot make
A slug can look valid and still conflict with records, routes, or files that already exist. The generated value needs a final publishing review.
- Uniqueness: Two different titles can normalize to the same value, and truncation increases the risk of collisions.
- Reserved routes and filenames: The tool does not check reserved route names or names that a filesystem will reject.
- System constraints: It does not inspect database limits, case-insensitive collisions, or an existing site’s URL inventory.
- Stable identifiers: The destination CMS or database should enforce uniqueness or append its own stable identifier when necessary.
- Full-address assembly: The tool does not add a domain, path slash, file extension, or percent encoding, and it does not reserve a URL.
Use the slug only in the context where its exact characters and length have been checked. The converter handles deterministic character transformation, not publishing, reservation, routing, or record management.
Use the slug in a content system
Generated slugs fit common editorial and development tasks, including:
- Draft URL path segments
- Filename stems
- HTML-style anchors
- CSS-like identifiers
- Note keys
- CMS planning labels
All accepted input and option combinations produce a deterministic result under the browser’s Unicode implementation. Conversion, previewing, and download creation happen locally: no title, output, history, account, dictionary, or network service participates. The title is therefore not uploaded, and the downloaded TXT file contains the exact slug shown in the preview.
If you're weighing options, Upside Down Text Cheat Sheet: Character Map and Steps covers this in detail.
If you're weighing options, Character and Word Counter: Live Stats for Any Draft covers this in detail.