A string to slug converter turns a title or sentence into the lowercase, hyphen-separated text that goes in a URL path. Type or paste a title into the box above and the tool strips accents, removes punctuation and joins the words with your chosen separator as you type, so you can see the URL before you publish.
Read this first: the converter keeps only the letters A-Z and the digits 0-9. Accented Latin letters are handled (é becomes e), but letters with no accent-plus-base form, such as ß and ø, are dropped, and non-Latin scripts such as Arabic or Chinese are removed completely. Details are in the section on limits below.
What the Converter Does
Slugifying a string means turning it into a URL-safe identifier: lowercase, one separator between words, accents reduced to plain letters, and every other character removed. The tool does this in your browser with JavaScript's built-in Unicode normalization, so "Café Menu & Prices — 2026 Édition!" becomes cafe-menu-prices-2026-edition with no regular expression for you to write.
You can choose a hyphen or an underscore, cap the length, switch lowercasing off (for a filename or variable name where case matters), and optionally drop common stop words.
How to Use It
- Paste your text, such as a post title or product name, into the input field.
- Pick a separator. Use hyphens for public URLs. Underscores suit some internal identifiers and filenames.
- Set a max length if long titles produce slugs you find unwieldy. Around 50 to 60 characters is a common rule of thumb, not a Google limit.
- Tick "Remove stop words" only if the shorter slug still reads naturally. It is off by default.
- Click Copy Slug and paste it into your CMS slug field or filename. The result updates as you edit, so there is no need to re-run it.
How the Conversion Works
The code runs these steps in order:
- Lowercase the text (if "Force lowercase" is on).
- Normalize to Unicode NFD, which splits "é" into "e" plus a combining accent mark, then delete the combining marks. This is the decomposition described in Unicode Standard Annex #15.
- Replace every run of characters that is not A-Z, a-z or 0-9 with one separator.
- Collapse repeated separators and trim them from both ends.
- If stop-word removal is on, drop words from a fixed list of 24 (a, an, the, and, or, but, of, to, in, on, for, with, at, by, from, is, are, was, be, this, that, it, as, your). If every word is a stop word, the slug is left intact.
- If the slug is longer than the max length, cut it at that length, then back up to the last separator only if that separator falls beyond 60% of the max length. Otherwise the cut can land mid-word.
Limits You Should Know About
These come from running the same code on test strings:
- ß, ø and similar letters are dropped, not transliterated. "Straße Größe" becomes
stra-e-gro-eand "Naïve Façade Øre" becomesnaive-facade-re. Fix these by hand if your titles contain them. - Non-Latin scripts disappear. An Arabic title returns an empty slug, and "你好 world" returns just
world. If your audience reads that language, Google's URL structure guidance suggests words in the audience's language, with non-ASCII characters in UTF-8 percent-encoding, so you may prefer to write those slugs yourself. - Uniqueness is not checked. Two posts titled "Introduction" both give
introduction. Your CMS or code has to add a suffix or a category prefix. - Truncation can still end on a short fragment. A word boundary is used only when one exists in the last 40% of the allowed length.
Hyphens or Underscores
Google's URL structure documentation says to separate words with hyphens and to avoid underscores. A hyphenated slug like digital-marketing is the safe public default. Underscores remain fine for internal identifiers and filenames. Pick one separator and use it across the whole site rather than mixing them.
Arb Digital handles the SEO structure, including clean slugs, internal linking, sitemaps and schema, as part of website and content projects.
Our Services All Free ToolsHow to Read the Result
Look at the generated slug and the four counters. For the default input, the slug is 29 characters from 34 original characters, five words, not truncated. Ask three questions of any slug you produce:
- Can a person tell what the page is from the slug alone? If accent or symbol removal left fragments such as
stra-e, edit it. - Is "Truncated" showing Yes? Check that the last word is still whole and the key terms come first.
- Is the slug empty? The title probably contains only characters the tool removes. Write the slug by hand.
What to Do Next
- Check that the slug is not already used by another page on your site.
- Set it once at publish time. A published slug is part of every link and bookmark to the page.
- If you must change a live slug, set up a 301 redirect from the old URL to the new one. Google lists 301 redirects among its ways to signal a permanent move, but redirects are not a promise that rankings carry over unchanged.
- List the new URL in your sitemap with the XML Sitemap Generator, and set its social preview with the Open Graph Tag Generator.
Common Mistakes
- Changing a slug after it is indexed without a 301 redirect, which turns old links into 404s.
- Stuffing every keyword into a very long slug. A short descriptive one is easier to read and share.
- Removing stop words when it changes the meaning, for example "to be or not to be".
- Using the tool's output for a non-English title without checking what was dropped.
More free tools are in the tools hub. To check how a finished URL breaks down, try the URL Parser or the URL Encoder/Decoder.
Worked Example With the Default Inputs
These are the starting values in the form:
- Text to convert: Café Menu & Prices — 2026 Édition!
- Separator: hyphen
- Max length: 60
- Force lowercase: on
- Remove stop words: off
The tool returns the following, computed by the same code that runs above:
- Generated slug: cafe-menu-prices-2026-edition
- Original chars: 34
- Slug chars: 29
- Words joined: 5
- Truncated: No
The slug is shorter because the accents, the ampersand, the dash and the exclamation mark are removed. Turning stop-word removal on gives the same slug here, since none of the five words is on the list. These are sample numbers, not a benchmark.
Frequently Asked Questions
A slug is the lowercase, hyphen-separated portion of a URL that identifies a specific page, typically derived from its title, such as /best-running-shoes-2026/.
Use hyphens for public URLs. Google's URL structure guidance recommends hyphens to separate words and advises avoiding underscores. Underscores are better reserved for internal identifiers.
It uses Unicode NFD normalization to split each accented letter into its base character and accent mark, then strips the accent mark, leaving plain ASCII behind. Letters such as ß and ø have no such split and are dropped.
No. Only A-Z and 0-9 are kept, so non-Latin characters are removed and the slug may come out empty. Write those slugs by hand or use a transliteration tool.
There is no hard limit. Keeping slugs under roughly 60 characters is a common rule of thumb for readability, not a Google requirement.
The old URL will return a 404 unless you set up a 301 redirect to the new slug. A redirect keeps old links working but does not guarantee identical rankings.
Yes, it runs entirely in your browser with no sign-up, no character limits, and no data ever sent to a server.