Text to Slug
Turn any text into a URL- and filename-safe slug. Standardise casing and separators, optionally strip common stopwords, transliterate accented characters (café → cafe), and cap length so slugs stay predictable. Useful for article URLs, subdomain segments, repo names and anchor-friendly text. Everything runs on-device.
🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.
Options
Your result will appear here
Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.
How it works
What each option changes
Separator picks the joiner between words — hyphen, underscore or none. Lowercase output is on by default, and transliterate maps accented characters to ASCII so café becomes cafe, ñ becomes n, and the ligatures æ, œ, ß, ø, đ and ł each have their own mapping. Remove stopwords drops common words such as the, and, of and to.
The normalising pipeline
Input is collapsed first: runs of whitespace become one space, both ends are trimmed, and anything over 20,000 characters is refused. The text is then transliterated, lowercased and stripped of every non-alphanumeric run in favour of the separator, with empty segments dropped. If nothing remains, the tool stops with a hint to toggle stopword removal or transliteration instead of returning a blank slug.
Truncation stops at a word boundary
Max length does not slice mid-word. The slug is rebuilt one word at a time, stopping at the last whole word that fits, so a 60-character cap yields my-page-title rather than my-page-titl. With the none separator there are no word boundaries, so truncation falls back to a plain character cut.
Deterministic and local
The transformation is a local string pipeline, so the text never leaves your browser and the page works offline. It is deterministic — the same input and options always produce the same slug — which suits filenames, repo names and anchor text.
Questions
What exactly is a slug?
The human-readable part of a URL that identifies a page, e.g. /tips/how-to-write-clean-code. A good slug is lowercase, uses one separator, and drops filler words.
Why transliterate accents?
URLs should stay ASCII. "café" becomes "cafe", "ñ" becomes "n", "æ" becomes "ae" — so links are copy-safe and consistent across systems.
What happens when max length cuts a word?
The slug is truncated at a word boundary and trailing separators are removed, so you never get a dangling "my-page-".
Related tools
See categoryURL Parser
Break a URL into protocol, host, path, query parameters and hash.
URL Encode / Decode
Percent-encode or decode text for use in URLs — component or whole-URL mode.
Case Converter
Convert between UPPER, lower, Title, Sentence, camelCase, snake_case, kebab-case and more.
Text Statistics
Count characters, words, sentences and paragraphs, with platform limits, readability scores and reading time.