URL Slug Generator
Turn a heading into a URL-friendly slug: lowercase, hyphen-separated, without unsafe punctuation.
How to use
- Paste the page title or heading.
- Generate the slug. Accents such as å, ä and ö become ASCII letters.
- Copy the result into your CMS or file name. Check that the path is not already used on your site.
How it works
A URL slug is the readable path segment after the domain — the part people see and sometimes type. Readable slugs help humans scan a link and keep the path stable when the page title later changes in a heading.
A good slug is short, lowercase and hyphen-separated: free-url-slug-generator. A poor slug keeps punctuation, spaces or a query string (Free_URL!!! or page?id=123).
This tool lowercases the text, decomposes Latin letters with Unicode NFD, and strips combining marks so Göteborg becomes goteborg and å, ä, ö become a, a, o.
Whitespace and punctuation become a single hyphen; repeated separators collapse; leading and trailing hyphens are trimmed. Remaining Unicode letters and numbers are kept — there is no Chinese, Japanese, Korean or Arabic romanization.
If nothing letter-like remains, you get an error instead of an empty path.
Formula
NFD → strip combining marks → lowercase non-letters/numbers → - collapse and trim hyphens
Worked examples
English title — good slug
Free QR Code Generator → free-qr-code-generator
Swedish city
Göteborg → goteborg
Repeated spaces and punctuation
Hello, world!!! → hello-world
Useful notes
- Transliteration is Latin-diacritic only (including Swedish). Other scripts are not romanized.
- This does not check whether the slug is already used on a site.
- Slug generation runs in your browser.
FAQ
- What is a URL slug?
The readable segment of a path, such as /guides/what-is-url-encoding. It is not the full URL and not a query string.
- Why use a readable slug?
People can guess and remember the path, and you can keep the slug when the on-page heading changes. Opaque IDs still work; they are just harder to scan.
- How are å, ä and ö handled?
They are decomposed and the marks are removed: å→a, ä→a, ö→o. Göteborg becomes goteborg.
- Do you transliterate every language?
No. Only Latin diacritics are flattened to ASCII. Other letter scripts stay as themselves; they are not turned into pinyin or similar.
- Is the title uploaded?
No. Slug generation runs in your browser.
Related tools
Text Case Converter
Convert text to lowercase, UPPERCASE, Title Case, Sentence case, camelCase, PascalCase, snake_case or kebab-case.
URL Encoder / Decoder
Percent-encode or decode URL components in your browser with encodeURIComponent and decodeURIComponent.
Lorem Ipsum Generator
Generate placeholder paragraphs, sentences or words in your browser. Optionally start with the classic opening line.
See all Utilities tools.