Pikkola slugify, tool No. 99

A title a URL can carry.

Type a heading and get a slug: Hangul romanised by sound, accents folded off Latin, everything else dropped and counted. The length is judged against what a search result shows, and a list of titles becomes a list of slugs in one pass.

21
rules applied
60
characters judged
0
lookups

The index drawer

One title, or a whole list

The reading is shown beside the slug, so a romanisation that surprises you can be checked against the letters it came from. Nothing is looked up online and nothing is stored.

Slug

Romanised reading

Three things a slug has to survive

It travels in a URL, it gets pasted into a chat, and it is read by a person deciding whether to click.

01

Percent signs are not a slug

An unencoded Korean title in a URL becomes a row of %EC%84%9C characters, unreadable when the link is pasted into a message and unhelpful in an analytics report. A slug is the same title written in the letters a URL can carry unescaped.

02

Romanisation is a reading, not a translation

서울 is seoul because that is how it sounds, not because an English word exists for it. This page follows the Revised Romanisation tables and the common pronunciation rules, so 한국어 reads hangugeo and 값 reads gap. A person's name may have a romanisation of its own and that one wins.

03

Length is a promise about the cut

A search result shows about sixty characters of a URL before it truncates, and a slug cut in the middle of a word reads as a different word. The page trims at a word boundary and says when it had to, so the title can be shortened instead of silently losing its end.

What is read, and what is dropped

A slug is lossy by nature. The honest version says what it lost.

Part What this page does What it will not do
Hangul Read syllable by syllable with the Revised Romanisation tables, final consonants carried across a vowel and assimilated before ㄴ or ㅁ Guess at a hanja reading, or apply a surname's traditional spelling
Latin Folded out of its diacritics: é to e, ü to u, ß to ss, ø to o Transliterate Cyrillic, Greek or Thai, which need a table of their own
Other scripts Dropped and counted, so the number is visible Invent a reading for kanji or hanzi, which needs a dictionary
Case and spacing Lowercased, runs of anything else collapsed to one separator Keep uppercase, or a separator at the start or the end
Length Trimmed at a word boundary, with the verdict beside it Cut inside a word and call the result final
Storage Nothing: a reload returns to the first sample Keep a title, an account, a cookie, or make a request after the page loads

The Revised Romanisation allows an apostrophe between syllables that would otherwise merge, as in 중앙 ang, and it does not mark them here because an apostrophe in a URL is more trouble than it saves. For a legal name, use the spelling on the document.

Field guide

Sound, spelling and the sixty characters a result shows

A slug is the same title written in the characters a URL carries unescaped. Getting there means choosing between sound and spelling, and knowing when the cut happens.

Why not just put the title in the URL

You can: a URL may carry any Unicode in its path, and the browser shows it as percent-encoded when it copies it. The trouble starts when that copy leaves the browser. A chat message shows %EC%84%9C%EC%9A%B8, an analytics report shows the same, and a person reading a printed line cannot tell two links apart. A slug is the same title in the letters that survive every one of those trips.

The cost is precision: a slug is a lossy compression of a title. Two different titles can produce the same slug, which is why a CMS appends a number rather than assuming uniqueness, and why a slug that matters for search should be set once and not regenerated when the title is edited.

How Hangul is read

Each syllable is decomposed into an initial, a vowel and a final consonant, and the three are written from the Revised Romanisation tables. Then the rules where two syllables meet apply: a final consonant moves to the next syllable when that syllable starts with a vowel (한국어 → hangugeo), a cluster simplifies to one sound before a consonant (값 → gap, but 값이 → gapsi), ㄱ ㄷ ㅂ become ㅇ ㄴ ㅁ before ㄴ or ㅁ (독립 → dongnip), ㄴ and ㄹ become two l sounds in either order (신라 → silla, 설날 → seollal), and ㄷ or ㅌ before 이 becomes 지 or 치 (굳이 → guji, 같이 → gachi).

Three things this deliberately does not do. It does not look up hanja readings, because that needs a dictionary and a wrong guess is worse than a dropped syllable. It does not apply the surname exceptions, where Kim, Lee and Park keep spellings that the system would write Gim, I and Bak. And it does not add the hyphen the standard allows between syllables that would otherwise merge, because a hyphen inside a slug is already the word separator.

Folding everything else

Latin text is decomposed with Unicode NFD and the combining marks are removed, so café becomes cafe and naïve becomes naive. A handful of letters that are not an accent but a letter of their own are mapped by hand: ß to ss, ø to o, æ to ae, œ to oe, đ to d, ł to l. Cyrillic, Greek, Arabic, Thai and the CJK scripts are dropped, and the page counts what it dropped rather than pretending it read them.

If a title is mostly in a script the page cannot read, the honest fix is to supply the reading: a Japanese title can be given in kana, which maps to romaji almost mechanically, and a Chinese one needs its pinyin. A slug built from a guessed reading is a wrong word with a permanent address.

The sixty characters, and why the cut matters

Search results and social previews show a URL up to roughly sixty characters before truncating, and a slug cut mid-word reads as a different word: winter-fishing-gear-checklist truncated to winter-fishing-gear-che is not obviously the same page. This page trims at the last separator inside the limit, and says which verdict it reached, so the title can be shortened on purpose instead of losing its end by accident.

Length is only half of it. A slug should also be distinct from the pages around it, stable once published, and free of the year unless the page is about that year. Changing a slug means a redirect for every link that already exists, which is a cost worth paying once and not twice.

When the whole address has to be taken apart, Pikkola URL parses and rebuilds it. When the characters themselves are the question, Pikkola Unicode names them.

Questions

Is my title sent anywhere?

No. The tables and the rules are a script on this page, and the slug is computed in the tab. Nothing is stored, so a reload returns to the first sample, and the only request the page makes after it loads is the cookieless page-view count.

Why does my name romanise differently from my passport?

Because a passport follows a person, not a rule. The Revised Romanisation is the official system for new transcriptions, but a name may keep an older spelling (Kim rather than Gim, Lee rather than I) by family custom or by the spelling already on documents. Use the page for anything else, and use the document for a name.

Can a slug keep the Korean?

Yes, and it becomes percent-encoded in the address bar while still being readable in place. It is a real choice: a Korean slug reads better to a Korean audience and worse in a chat app that shows the encoded form. This page makes the Latin slug, and the guide explains when the other is the better answer.

What is the right maximum length?

Sixty characters is the number most search results show before cutting, so the page treats it as the line between fine and possibly cut. Shorter is usually better: the title is what a reader sees in the result, and the slug only has to be distinct. Three to six words is the range most useful slugs fall in.

Why did the page drop my Japanese title?

Because kanji has no reading without a dictionary. Kana could be mapped to romaji, but a title in kanji needs a person or a morphological analyser to say how it is pronounced, and inventing one would put a wrong word in a URL that lasts. The dropped count is shown so you know it happened, and the fix is to provide the reading as kana or romaji.