Text Tools

Slug Generator

Turn a title into a clean URL slug: lower case, hyphens, accents removed, Hindi kept or dropped.

By Nitin Raturi · Last reviewed

Input

How to use the Slug Generator

Turn a title into a clean, lower-case URL slug.

  1. Paste the title or text.
  2. Choose the separator and what to do with Hindi or other scripts.
  3. Set a maximum length, or 0 for none.
  4. Copy the slug, or the encoded form for a URL.

Good to know

  • Short, readable slugs are easier to share.
  • Your text is never uploaded or put in the link.

Lower-case, hyphen-separated URL slugs, with accents removed and Hindi kept or dropped.

Runs in your browser. Nothing you type is uploaded or saved in the link.

Title or text

The page title or phrase to turn into a URL slug.

How to fill it in

  • Type or paste up to 2,000 characters.
  • Accents are removed from Latin letters and & becomes “and”.

Example

“Café & Chai: 10 Best Places in Pune (2026)” becomes cafe-and-chai-10-best-places-in-pune-2026.

Word separator

The character placed between words.

How to fill it in

  • Hyphen (-): what Google recommends for URLs.
  • Underscore (_): for file names or systems that need it.

Hindi and other scripts

What to do with letters that are not Latin, such as Devanagari.

How to fill it in

  • Keep: the words stay in their script and are percent-encoded in the address bar.
  • Remove: only Latin letters and digits are kept.

Example

Kept, “दिल्ली का मौसम” becomes दिल्ली-का-मौसम. Removed, “Delhi मौसम 2026” becomes delhi-2026.

Keep in mind: The tool does not transliterate Hindi to English letters. Add an English title if you need one.

Maximum length

The longest slug allowed, in characters. 0 means no limit.

How to fill it in

  • Enter a whole number from 0 to 200.
  • The cut is made at a word boundary where possible.

Example

At 40, a long title becomes how-to-calculate-sip-returns-for-a-10.

Result

Slug

cafe-and-chai-10-best-places-in-pune-2026

Length
41 characters
Cut to the maximum length
No

How this calculator works

  1. Step 1Clean lettersé → eAccents are removed from Latin letters; & becomes “and”.
  2. Step 2Lower caseAa → aaEvery letter is made lower case.
  3. Step 3Join wordsa-b-cAnything that is not a letter or digit becomes one separator.
  4. Step 4Limit length≤ 60Long slugs are cut at a word boundary.

A slug is the readable part of a web address, such as the end of example.com/cafe-and-chai-10-best-places-in-pune-2026. Google recommends readable words separated by hyphens rather than underscores.

Worked example

Turning “Café & Chai: 10 Best Places in Pune (2026)” into a slug
Rule
fold accents → lower case → join words with -
  1. Accents and &Cafe and Chai: 10 Best Places in Pune (2026)
  2. Lower casecafe and chai: 10 best places in pune (2026)
  3. Slugcafe-and-chai-10-best-places-in-pune-2026

With underscores the same title becomes cafe_and_chai_10_best_places_in_pune_2026. At a 40-character limit, a long title is cut after a whole word: how-to-calculate-sip-returns-for-a-10.

Hindi and other scripts

  • Keepदिल्ली-का-मौसमReadable in the address bar; sent percent-encoded.
  • Removedelhi-2026From “Delhi मौसम 2026”: only Latin letters and digits stay.

Browsers show a kept Hindi slug as written, but the address is sent percent-encoded, which Google recommends for non-ASCII characters. Vowel signs are kept intact.

Read the result

Copy the slug; if it has Hindi or other non-ASCII letters, the encoded form shows exactly what a link contains.

The length counts characters as you see them. The facts line also says whether the maximum length cut the slug.

Assumptions and limits

  • No transliterationHindi is not converted to English letters.
  • Lower case onlySlugs are always lower case.
  • No stop wordsShort words such as “in” are kept.
  • PrivateYour text never leaves your browser.

Changing the slug of a published page breaks old links unless you add a redirect.

A good slug is short, lower case and readable.

To encode characters a slug cannot hold, use the URL encoder and decoder. The case converter produces kebab-case and other styles, and the word counter checks a title’s length.

Common mistakes

  • Mistake: Using underscores in web addresses.

    Instead: Use hyphens, as Google recommends.

  • Mistake: Changing a live page’s slug without a redirect.

    Instead: Add a permanent redirect from the old address.

  • Mistake: Stuffing many keywords into the slug.

    Instead: Keep a short, readable phrase.

Checking the method

Every golden case is rebuilt by an independent Python script.

The script uses Python’s Unicode database and URL quoting, and compares every slug and encoded form.

Read how we test our calculators, or browse more everyday tools.

Frequently asked questions

What is a URL slug?

The readable end of a web address. “Café & Chai: 10 Best Places in Pune (2026)” becomes cafe-and-chai-10-best-places-in-pune-2026.

Hyphens or underscores?

Hyphens. Google recommends hyphens to separate words in URLs and advises against underscores.

Can a slug be in Hindi?

Yes. Kept, “दिल्ली का मौसम” becomes दिल्ली-का-मौसम; browsers send it percent-encoded. Choose Remove to keep only Latin letters.

How long should a slug be?

Short enough to read at a glance. With a 40-character limit, a long title becomes how-to-calculate-sip-returns-for-a-10.

Is my text uploaded?

No. The slug is made in your browser and the text is not put in the link.

Sources and methodology

The formulas are standard time-value-of-money results. We check every figure against golden values worked out independently, by closed form and by month-by-month simulation; see the methodology.

Written and maintained by Nitin Raturi, a software engineer (about the author). Last reviewed 3 Nov 2026; next review due by . Found an error? Tell us.

Changelog

  • : Initial release.