Skip to content
MyToolkit.pro

SEO & text

Slug generator

Turn a title into a clean, URL-safe slug. Accented letters are transliterated to ASCII, symbols are dropped and words are joined by your chosen separator. Your text stays in this browser.

Private by design: no text is uploaded or stored.

Private by design: no text is uploaded or stored.

Result — options

Try an example

Result

Updates when you generate or change an option.

Slug length
0

What makes a good slug?

A slug is the readable part of a URL. Keep it short, lowercase and made only of letters, digits and a single separator. This tool transliterates accented and special letters to ASCII (ą→a, ł→l, ö→o, ß→ss), removes punctuation, emoji and other symbols, collapses repeated separators and trims them from the ends. Choose a hyphen (recommended for the web) or an underscore.

How to turn a title into a URL slug

  1. Paste or type your post title, product name or heading into Title or text. The slug updates as you type.
  2. Pick hyphen or underscore under Word separator.
  3. Leave Convert to lowercase ticked for a normal web slug. Untick it only if you need the original capitals.
  4. Check the Slug length counter. Shorter slugs are easier to read and share, so if the number gets high, delete filler words from the input.
  5. Click Copy slug and paste the result into your CMS's permalink field, a router config or a file name.

To start from a sample, use the buttons under Try an example. They load a blog title, a Polish sentence with diacritics and a string with messy spacing.

Example slugs, before and after

Input Settings Slug
My First Blog Post! default my-first-blog-post
Straße & Café — 2024 Guide default strasse-cafe-2024-guide
Zażółć gęślą jaźń default zazolc-gesla-jazn
10 Tips: How to Use C++ & C#? underscore 10_tips_how_to_use_c_c
Ærøskøbing Ferry FAQ lowercase off AEroskobing-Ferry-FAQ

The ampersand and the em dash don't add extra separators. Any run of spaces, punctuation or symbols becomes a single hyphen. Programming names lose their symbols too, so "C++" and "C#" both end up as a plain c. If the difference matters, write the names out in the input first, for example "C plus plus" and "C sharp".

Some letters aren't a base letter with an accent added, so they can't just lose a mark. The tool gives them a fixed ASCII spelling: æ → ae, ø → o, œ → oe, þ → th, ð → d and đ → d. For example, Þór Đakovo Œuvre becomes thor-dakovo-oeuvre. Compatibility characters are expanded as well. The ligature fi in file gives file, and the Roman numeral sign Ⅻ becomes the letters XII (xii with lowercase on).

Where a generated slug is useful

  • Blog and CMS permalinks: WordPress, Ghost and most headless CMSs suggest a slug, but they don't all handle non-English letters the same way. Making the slug here gives you a predictable ASCII version to check before you publish. Stop words like "how" and "to" are kept, so remove them by hand if you don't want them.
  • Product and category URLs in shops: a name like "Crème brûlée set – 6 pcs" gives creme-brulee-set-6-pcs, which works in any URL without percent-encoding.
  • Static site file names: Jekyll, Hugo and Astro often build a post's URL from its file name. An ASCII slug avoids spaces and accented letters, which macOS and Linux can store differently and which show up in the URL as %20 or %C3%A9.
  • Anchor IDs and keys: section IDs for in-page links, translation keys or fixture names, anywhere you need only a–z, 0–9 and one separator.

This tool doesn't split camelCase, so userId becomes userid. If you need user-id or user_id, use the Case converter with kebab-case or snake_case.

What the generator drops and where it stops

The output only ever contains ASCII letters, digits and the separator you chose. Separators at the start or end are trimmed. That has a few consequences:

  • Non-Latin scripts are removed, not transliterated. The tool has no ASCII equivalent for Cyrillic, Greek, Arabic, Chinese or Japanese text, so Привет мир gives no slug at all and 日本語 title 🚀 gives just title. For those languages, write a Latin version of the title first, or keep the native script and encode it with the URL encoder.
  • Emoji and symbols are removed completely, with no placeholder word.
  • Line breaks count as separators. A pasted multi-line list becomes one long slug, not one slug per line.
  • Length isn't capped. The counter shows the length, but the tool never cuts the slug short, so shortening is up to you. The input box takes up to 100,000 characters.
  • Turkish dotted and dotless i lose their difference: İ → I and ı → i, so with lowercase on, İstanbul ıspanak gives istanbul-ispanak. For why Turkish case mapping is unusual, see Why uppercase isn't a letter swap.

If you only want to strip diacritics and keep spaces, punctuation and capitals, use Remove accents instead.

Frequently asked questions

Should I use hyphens or underscores in URL slugs?

Use hyphens for public web pages. Google's URL structure guidelines recommend hyphens rather than underscores to separate words. Underscores are fine for file names, IDs and internal keys.

How long should a URL slug be?

There's no fixed limit, but slugs of three to six meaningful words are easier to read, share and remember. Leave out articles and filler words such as "a", "the" or "how to" when they don't add meaning.

Can a URL slug contain non-English characters?

Yes. Modern browsers display them, but the actual request percent-encodes them, so a pasted link can turn into a long string of %D0%BF-style codes. An ASCII slug avoids that. A native-script slug can still make sense for readers of that language.

Should I change a slug after a page is published?

Only if you have a good reason, because the old URL stops working. If you do change it, set up a 301 redirect from the old address so links and search rankings carry over.

Are uppercase letters allowed in URLs?

Yes, but the path part of a URL is often case-sensitive, so /My-Post and /my-post can be different pages. Lowercase slugs prevent duplicate URLs and broken links from mistyped capitals.

All in Text & Lists

Case converter

Convert text to UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case and CONSTANT_CASE — all nine at once, each with its own copy button. Works entirely in your browser.

Text & Lists In your browser

Lorem Ipsum Generator

Generate placeholder Lorem ipsum text — paragraphs, sentences or words — instantly in your browser. Nothing is uploaded.

Text & Lists In your browser

Extract URLs from text

Pull every http and https link out of a block of text, trim trailing punctuation, remove duplicates and get a clean, sorted list. Everything happens in your browser.

Text & Lists In your browser

Markdown table generator

Turn pasted rows — CSV, tab, semicolon or pipe separated — into a clean GitHub-flavored Markdown table. The delimiter is detected automatically. Everything happens in your browser.

Text & Lists In your browser

Remove accents

Convert accented and special Latin letters to plain ASCII: café becomes cafe, zażółć becomes zazolc, naïve becomes naive. Handy for slugs, filenames and legacy systems. Runs in your browser.

Text & Lists In your browser

Text to NATO phonetic alphabet

Spell text with the NATO phonetic alphabet — Alfa, Bravo, Charlie — plus spoken digits. Perfect for reading codes, names or passwords aloud over the phone. Runs in your browser.

Text & Lists In your browser

What do you need?

Swipe up for the next one