Slugify Text Tool
Enter text to turn it into a clean URL slug.
Result
How it is calculated
The text goes through four steps. First, accented Latin letters are replaced by plain ones from a built-in table (é to e, ü to u, ß to ss, ı to i, ğ to g, æ to ae). Second, everything is made lowercase. Third, every run of characters that is not a to z or 0 to 9 (spaces, punctuation, symbols, apostrophes, existing hyphens and underscores) is treated as one gap. Finally, the gaps are replaced by a single separator, either a hyphen (default) or an underscore, and the separator at the start and end is trimmed. The tool also shows the slug's length in characters.
Only letters that are in the table survive. An accented capital that is missing from the table, and letters from non-Latin scripts such as Cyrillic, Greek or Chinese, are dropped like punctuation. If nothing remains, there is no result. Digits are kept, and word order is not changed.
Worked example
Input: Café Menu: 10 Best Crêpes & Müsli!, hyphen separator. After transliteration and lowercase: cafe menu: 10 best crepes & musli!. The colon, ampersand and exclamation mark are not letters or digits, so they become gaps along with the spaces. The words cafe, menu, 10, best, crepes and musli remain, joined with single hyphens. The slug is cafe-menu-10-best-crepes-musli, which is 30 characters long.
Common mistakes
- Expecting non-Latin text to be transliterated. A title in Cyrillic, Greek, Arabic or Chinese is not converted to Latin letters; if it contains nothing else, the tool returns no slug.
- Expecting apostrophes to disappear. "Don't" becomes don-t, because the apostrophe is treated as a gap; remove it by hand if you want "dont".
- Assuming every accented capital is handled. Capitals missing from the table are dropped, so "ĄĘ" disappears completely while "É" and "Ç" are fine; check the output for uncommon letters.
- Expecting underscores in the input to stay. In hyphen mode they become hyphens, and in underscore mode hyphens in the input become underscores.
- Using a long title as a slug. The tool does not shorten it, so remove filler words yourself to keep a URL tidy.
About this calculator
A URL slug is the clean, human-readable identifier that appears at the end of a web address — turning “My Article: 2026 Guide!” into something like “my-article-2026-guide”. Slugification lowercases the text, strips accents and diacritics through transliteration (so “café” becomes “cafe”), removes punctuation and symbols, and replaces spaces and remaining non-alphanumeric characters with hyphens (or underscores), collapsing repeats along the way.
Every CMS, blogging platform and e-commerce catalog does this automatically when you save a title, because clean slugs are both more readable for humans and better for SEO — search engines and users alike parse hyphenated keyword URLs more easily than URLs full of spaces, symbols or percent-encoded characters. This tool applies the same transformation to any text you paste in, so you can generate a slug manually or check what a platform’s auto-slugifier would produce.
Was this helpful?
You can pick up to 3 reactions.
Popular calculators
Loan Calculator
Monthly payment, total interest and full amortization schedule.
Percentage Calculator
Percent change, percent of, and ratio calculations.
Discount Calculator
Calculate final price, savings, and discount amount.
BMI Calculator
Body mass index from height and weight (metric or imperial).
Age Calculator
Compute your exact age in years, months and days from a birth date.
Compound Interest Calculator
Calculate the final amount and interest earned with compounding.
All Calculators
- Loan Calculator
- Profit Calculator
- Discount Calculator
- BMI Calculator
- Percentage Calculator
- Ideal Weight Calculator
- Age Calculator
- Pregnancy Due Date Calculator
- Compound Interest Calculator
- BMR Calculator (Basal Metabolic Rate)
- Tip Calculator
- Fuel Cost Calculator
- Date Difference Calculator
- Sleep Cycle Calculator
- Daily Water Intake Calculator
- Simple Interest Calculator
- Heart Rate Zones Calculator
- Running Pace Calculator
- Pet Age Calculator
- Calories Burned Calculator
- Macro Calculator
- TDEE Calculator (Total Daily Energy Expenditure)
- Waist-to-Hip Ratio Calculator
- Honor Roll Calculator
- One Rep Max (1RM) Calculator
- Ovulation Calculator
- Electricity Cost Calculator
- Unit Price Calculator
- Savings Goal Calculator
- Break-Even Point Calculator
- Paint Calculator
- Course Grade Average Calculator
- Business Days Calculator
- Time Duration Calculator
- Fuel Economy Calculator
- Temperature Converter
- Tile Calculator
- Aspect Ratio Calculator
- Roman Numeral Converter
- Goal Weight Timeline Calculator
- Salary Converter (Hourly to Annual)
- Credit Card Validator (Luhn)
- Body Surface Area (BSA) Calculator
- Feels-Like Temperature Calculator
- Ohm’s Law Calculator
- PPI (Pixel Density) Calculator
- Molar Mass Calculator
- Zodiac Sign Calculator (Western + Chinese)
- IBAN Validator
- Shoe Size Converter
- Country Info & Dialing Code Lookup
- Time Zone Difference (World Clock)
- CAGR (Compound Annual Growth Rate) Calculator
- Rule of 72 Calculator
- Blood Alcohol Content (BAC) Calculator
- Lean Body Mass (LBM) Calculator
- Pythagorean Theorem Calculator
- Speed Converter
- Download Time Calculator
- Date Calculator (Add/Subtract)
No calculators found
Comments (1)
Pick the slug once and leave it, because changing a published address breaks links to it unless you redirect the old one. Hyphens are the usual choice for web addresses since search engines treat them as word breaks, while underscores suit file names. The sample title gives hello-world-cafe-co, 19 characters. What kind of titles do you turn into slugs?