TapCub is live — analytics, insights and live chat, free on one platform

Free tool Slug generator for clean URLs

Paste a headline and get the short, readable part of the address that comes after the last slash. Accents go, symbols become hyphens, Chinese turns into pinyin, and long titles are cut at a whole word.

  • Lowercase, hyphenated
  • Chinese to pinyin
  • Runs locally
Generator

Turn a title into a slug

The slug updates as you type. Copy it into your CMS, router or file name, then read it once before you publish.

A headline, product name or file name. Chinese characters are converted to pinyin without tones.

Hyphens are the usual choice in URLs. Underscores suit file names and code keys.

In characters. The slug is cut at the last whole word; leave empty for no limit.

Slug
cafe-guide-10-tips-and-tricks-for-2026

Lowercase letters, digits and the separator only.

Length

38

Characters in the slug.

Runs entirely in your browser. Nothing you type here is uploaded or stored by TapCub.

Share these inputs: the values go after the # in the link, so they never reach a server.

Version v1.0Updated Update history

Read the result

What the slug and the notes tell you

The output is meant to be pasted straight into a URL. The notes under the inputs flag the cases worth a second look.

Slug

Only a–z, 0–9 and the separator you picked. No repeated or trailing separators, so it is safe in any URL or file name without encoding.

Length

The character count of the slug itself, not the full URL. Use it to keep slugs short enough to read in a search result or a shared link.

Pinyin note

Shown when the title contains Chinese. Common words with two readings, such as 银行 (yin hang), use a phrase table; single characters take their most common reading.

Skipped characters

Rare Chinese characters outside the table, and scripts such as Cyrillic or Japanese kana, are dropped. If the result looks short, check what went missing.

A slug becomes part of a page's identity: links, bookmarks and search results point at it. Settle it before you publish, because changing it later means setting up a redirect.

How to use it

From headline to URL in three steps

Most slugs need a small human edit after the automatic pass.

  1. 1

    Paste the title

    Use the headline as written. Capitals, accents, punctuation and Chinese are all handled.

  2. 2

    Set the limits

    Pick hyphen or underscore and an optional maximum length. The cut never lands in the middle of a word.

  3. 3

    Trim by hand

    Drop filler words the slug reads fine without, such as "how to" or "the", and keep the words people search for.

Rules

How the generator builds a slug

The same rules run in the same order every time, so the same title always gives the same slug.

  • Chinese is read word by word against a phrase table of common multi-reading words, then character by character
  • Pinyin is written without tones; ü becomes v (绿 → lv), as on a pinyin keyboard
  • Stop words are kept: the tool does not guess which words you can spare
  • The pinyin table covers the 6,763 common characters of GB 2312
Slug generation rules with examples
RuleInputOutput
Lowercase everythingHow Tohow-to
Remove accentsCafé Déjàcafe-deja
& becomes "and"CPM & CTRcpm-and-ctr
Other characters become one separator, trimmed at the ends(2026)!2026
Chinese becomes toneless pinyin数据分析shu-ju-fen-xi
Multi-reading words by phrase银行yin-hang
Max length cuts at the last separatora very long title, max 15a-very-long
Worked example

Four titles, four slugs

Real outputs from the generator with a hyphen separator. The third row shows why a quick read before publishing is worth it.

Example titles and the slugs generated from them
TitleMax lengthSlugLength
How to Calculate CPM & CTR (2026)Nonehow-to-calculate-cpm-and-ctr-202633
Café Déjà vu: a crème brûlée guideNonecafe-deja-vu-a-creme-brulee-guide33
10 Ways to Improve Your Website's Conversion Rate in 20264010-ways-to-improve-your-website-s33
重庆银行的用户增长Nonechong-qing-yin-hang-de-yong-hu-zeng-zhang41

In row three the apostrophe became a separator and the limit cut the keyword "conversion rate". A hand edit such as improve-website-conversion-rate is shorter and keeps the point of the page.

Common mistakes

Where slugs go wrong

The generator handles the characters. These are the decisions it cannot make for you.

Changing a live slug

A new slug is a new URL. Without a 301 redirect from the old one, links and search traffic land on a 404.

Dates that age

A year in the slug makes the page look stale once you update it. Keep the year in the title, not the URL, unless the page is truly about that year.

Cutting the keyword

A max length cuts at a whole word, which may still drop the words that matter. Rewrite rather than truncate.

Trusting it blindly

Apostrophes become separators (website's → website-s) and letters such as ß are dropped. Read the slug once before you save it.

FAQ

Slug generator questions

Still have a question?

Chat with the team behind TapCub — we usually reply within a few hours on business days.

What is a URL slug?

The readable part of a URL that identifies one page, usually after the last slash. In example.com/blog/cpm-vs-cpc the slug is cpm-vs-cpc. Most CMSs create one from the title and let you edit it.

Should I use hyphens or underscores?

Hyphens. Google's URL guidance recommends hyphens to separate words, and they are the convention on most sites. Underscores are fine for file names and code identifiers.

How long should a slug be?

There is no fixed limit, but shorter is easier to read, share and remember. Keep the words that describe the page and drop the rest. The max length box helps you stay within a limit your CMS or team sets.

Should I remove stop words like "the" or "how to"?

Often, as long as the slug still makes sense. The generator keeps every word so nothing is lost by accident; remove the filler by hand.

How are Chinese titles converted?

Each character becomes toneless pinyin, with common words that have two readings looked up as a phrase first (银行 → yin hang). The table covers the 6,763 common characters of GB 2312; rarer characters are skipped and counted in the note.

Can I change a slug after publishing?

You can, but treat it as moving the page: add a 301 redirect from the old URL, update internal links, and watch the 404 report for anything you missed.

Why did a symbol or letter disappear?

The slug keeps only a–z and 0–9. Accented letters are converted (é → e), & becomes "and", and everything else turns into a separator or is dropped. Letters with no plain equivalent, such as ß, are lost, so check names carefully.

Changelog

Update history

New features, fixes and data refreshes for this tool, newest first.

  1. · v1.0

    LaunchedFirst release.

Missing something or found an error? Tell us — requests that come up often go into the next update. All tool updates

See your data clearly. Find your growth.

Every click, backed by data. Install one line of code and see your first numbers in a minute.

No credit card · Free plans for analytics and chat · Cookieless analytics