Slug Generator
Convert a title into a URL slug as you type. Choose hyphen or underscore, case and a maximum length; accents become ASCII. One title per line for bulk.
- 10-things-i-wish-i-knew-about-oklch
Drag to 0 for no limit. Longer slugs are cut at the last whole word that fits.
01 · Definition
What is a URL slug?
A URL slug is the part of a web address that names one page in readable words, such as my-first-post in example.com/blog/my-first-post. A slug is normally lower case, uses hyphens in place of spaces and leaves out punctuation, which makes the address easy to read, type and share.
02 · Overview
How the Slug Generator works
Turn a title or any string into a clean URL slug. The slug updates as you type and sits directly under the input. You can choose hyphen or underscore, lower case, upper case or as typed, a maximum length of up to 120 characters that cuts at a whole word (0 means no limit), and conversion of accented Latin letters to ASCII (é to e, ß to ss). Emoji and punctuation are removed. Paste a list with one title per line to slugify them all. The tool runs in your browser.
03 · Guide
How a title is turned into a slug
The tool applies the same steps to every line, in this order: convert accented Latin letters to ASCII, replace anything that is not a letter, digit, space, hyphen or underscore with a space, change case, collapse each run of spaces, hyphens and underscores into one separator, trim separators from both ends, then shorten to the maximum length at a word boundary.
Punctuation inside a word therefore splits it: an apostrophe or a full stop becomes a separator. The outputs below were produced by running the tool's slugify function with its default settings (hyphen, lower case, 60 characters, accents converted) unless the row says otherwise.
| Rule | Input | Slug |
|---|---|---|
| Spaces become the separator | Hello World | hello-world |
| Runs of spaces and symbols collapse | Multiple -- spaces & symbols!! | multiple-spaces-symbols |
| Accents are converted | Café Olé — naïve résumé | cafe-ole-naive-resume |
| ß and æ expand to two letters | Straße & Æther | strasse-aether |
| Emoji are removed | Hello, world! 🚀 | hello-world |
| Apostrophes split words | It's 9 o'clock | it-s-9-o-clock |
| Symbols are dropped, not spelled out | C++ vs C# | c-vs-c |
| Underscores become the separator | snake_case and kebab-case | snake-case-and-kebab-case |
| Other scripts are kept | Привет мир | привет-мир |
| Maximum length 20 cuts at a word | The quick brown fox jumps over the lazy dog | the-quick-brown-fox |
| Underscore separator | Hello World | hello_world |
04 · Use cases
When to use the Slug Generator
- 01
Convert a blog post title into a SEO-friendly URL slug
- 02
Bulk-slugify a list of product names
- 03
Turn a file or page name into a URL-safe string
- 04
Strip emoji and accents from a title
05 · Examples
Slug Generator examples
10 Things I Wish I Knew About OKLCH
ex 0110-things-i-wish-i-knew-about-oklch
The title is lowercased and spaces become hyphens.
Café Olé — naïve résumé
ex 02cafe-ole-naive-resume
Accented characters are transliterated and punctuation is stripped.
Ürün Açıklaması Sayfası
ex 03urun-aciklamasi-sayfasi
Turkish diacritics are transliterated to their closest ASCII equivalents.
Multiple spaces & symbols!!
ex 04multiple-spaces-symbols
Runs of whitespace collapse to one separator; punctuation is dropped, not encoded.
06 · FAQ
Slug: frequently asked questions
Are emojis stripped or transliterated?
What happens to accents and non-Latin scripts?
What's the difference between - and _ separators?
How long should a slug be?
What happens if I change a slug after publishing?
Should slugs be lowercase?
07 · Reference
Specs and further reading
These are the primary sources this tool follows. Where a specification defines the behaviour, we link the specification, not a summary of it.
- RFC 3986: URI Generic Syntax
IETF. Which characters are legal unescaped in a path segment.
- UAX #15: Unicode Normalization Forms
Unicode Consortium. The decomposition step (NFKD) the tool uses to separate accents from their base letters.
- URL structure best practices
Google. Google's guidance on readable URLs, including using hyphens rather than underscores.
08 · More
Tools that pair with Slug
Lorem Ipsum Generator
Generate lorem ipsum placeholder text by paragraphs, sentences or words. Classic Latin or corporate, hipster and bacon variants. Copy or download as .txt.
Regex GeneratorAI-powered
Describe what you want to match in plain English and get a JavaScript regex, with a live tester and a token-by-token breakdown.
Meta Tags GeneratorAI-powered
Generate the SEO, Open Graph and Twitter Card meta tags for a page, with a link preview. An AI model can suggest the title and description from a brief.
QR Code Generator
Make a QR code for a URL, text, a WiFi network or a vCard contact. Download as SVG or PNG up to 2,048 px. Codes are static, with no redirect or expiry.
Robots.txt Generator
Build a robots.txt file with Allow and Disallow rules per crawler, sitemap lines and presets for blocking AI training bots. Copy or download it.
UTM Link Builder
Add utm_source, utm_medium, utm_campaign and other UTM parameters to a URL. The tool keeps existing parameters and #fragments and encodes values.