URL Slug Generator Widget
Embed a slug generator for your CMS or blogging tutorials. Readers type a title and get a lowercase, hyphenated URL slug with accents converted, apostrophes removed and, optionally, stop words dropped and a maximum length applied.
Live preview
Exactly what your visitors will seeUnder the widget on your page: Powered by A2Z Tools
Embed code
<iframe src="https://a2z.tools/embed/w/slug-generator" title="URL Slug Generator by A2Z Tools" width="100%" height="620" style="border:0;width:100%" loading="lazy" allow="clipboard-write"></iframe>
A plain iframe. Works everywhere, including site builders that strip scripts. Adjust height if your content needs more room.
<div data-a2z-widget="slug-generator" data-height="620"></div> <script async src="https://a2z.tools/embed.js"></script>
Adds a small script (what it does) that sizes the widget to fit its content, loads it lazily and keeps it isolated from your page's CSS.
Works with
How it works
The widget follows the same approach as the A2Z Slug Generator. Text is Unicode-normalised and accent marks are removed, so Crème Brûlée becomes creme-brulee rather than cr-me-br-l-e; letters with no accent to remove are mapped by hand (ß to ss, æ to ae, ø to o, ł to l, þ to th). Apostrophes are dropped instead of becoming separators, so don't becomes dont. Every other run of punctuation and spaces becomes one hyphen or underscore, with none left at the ends. Optionally, common English stop words are removed (unless that would leave nothing), and a maximum length cuts at a word boundary. Non-Latin scripts are dropped by default or kept as Unicode letters if the reader prefers.
Method
- NFKD normalise, strip combining marks; map ß æ ø œ đ ð ł þ ı to ASCII
- Drop apostrophes; split on anything that is not A-Z, a-z, 0-9 (or any letter/digit in Unicode mode)
- Join words with - or _; lowercase unless switched off
- Max length: keep whole words while the slug fits; a single long word is cut
Limitations
- Transliteration covers Latin-script letters only; Cyrillic, Greek, Arabic, Devanagari or CJK titles are dropped or kept as Unicode, never romanised.
- The stop-word list is English; articles and prepositions in other languages are kept.
- It cannot check whether the slug is already used on your site, and it adds no date or ID prefix.
Where publishers use it
- WordPress, Ghost or Webflow guides on permalink settings
- SEO tutorials on writing readable URLs
- Developer docs for generating routes from titles
- Ecommerce help pages about product URL handles
Questions
Should I remove stop words from slugs?
It is optional. Shorter slugs are easier to read and share, but removing words like "not" can change the meaning, so check the result.
Hyphens or underscores?
Hyphens. Google treats a hyphen as a word separator, while underscores join words together.
What about titles in other scripts?
Turn on "Keep non-Latin letters" for a Unicode slug. Browsers display it normally, though some tools show it percent-encoded.
Does changing a slug affect SEO?
Changing the URL of a published page breaks existing links unless you add a 301 redirect from the old address.
Sources
- URL structure best practices for Google - Google Search Central . Recommends hyphens rather than underscores between words
- Unicode Standard Annex #15: Unicode Normalization Forms - Unicode Consortium . NFKD decomposition used to strip accents
Cite or recommend this tool
If you reference this tool in an article, course or documentation, these formats are ready to copy. They are optional - nothing is added to your site unless you paste it.
A2Z Tools URL Slug Generator https://a2z.tools/slug-generator
<a href="https://a2z.tools/slug-generator">A2Z Tools URL Slug Generator</a>
[A2Z Tools URL Slug Generator](https://a2z.tools/slug-generator)
URL Slug Generator by A2Z Tools - https://a2z.tools/slug-generator
Related widgets
-
Title Case, Sentence case, UPPER, lower, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE.
-
Preview a title, URL and meta description as a Google-style result, with pixel-width estimates.
-
Percent-encode or decode text and URLs, and find the exact position of a malformed escape.
-
Words, characters, sentences, paragraphs, reading time and social-media character limits.
-
Preview Facebook, LinkedIn and X link cards and generate the Open Graph meta tags.
-
Top one-, two- and three-word phrases in a text with counts and density, plus a focus keyword.