Skip to content
UniKit

Text to URL slug

Turn an English sentence or title into a usable URL: URL-encoding on demand, leading and trailing dashes trimmed and stray punctuation cleaned, with a configurable protocol prefix.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

English title / sentence

URL address

The address is computed entirely on this machine, with no network request; any change recomputes it immediately.

Type an English title to see the URL address

What this tool does

  • Turn an English title into a URL slug: paste `How to Make a Perfect Espresso — 2026 Edition!` and get `https://how-to-make-a-perfect-espresso-2026-edition` for a CMS custom-link field
  • Clean up file names or keyword lists: every run of non-alphanumerics becomes a single `-`, so `report_final (v2).docx` still yields a tidy path
  • Handle a title that cannot be slugged (pure Chinese, emoji): switch the slug off and the whole text is percent-encoded — `中文` becomes `%E4%B8%AD%E6%96%87`

Example

Input

How to Make a Perfect Espresso — 2026 Edition!

Output

https://how-to-make-a-perfect-espresso-2026-edition

The real result with the default options (protocol https, slug on, case lowered): lowercase first, then every run of spaces, dashes and exclamation marks collapses into a single `-`, and the trailing `-` is removed. The address is 51 characters long with a 43-character path (the “address length / path length” figures on the page) and it did not fall back to percent-encoding.

Frequently asked questions

What happens with a Chinese or emoji title?

Slugging keeps ASCII letters and digits only, so a pure Chinese or emoji title collapses to nothing. Instead of returning an empty `https://`, the tool falls back to percent-encoding: `中文` → `https://%E4%B8%AD%E6%96%87`, and the stats show “fell back to percent-encoding: yes”. It does **not** transliterate to pinyin or translate your title — that is a different job.

Are case and accents changed?

Everything is lowercased by default; switch on “Keep the original case” and `My First Post` becomes `My-First-Post`. Accented Latin letters are NFKD-normalised with the combining marks stripped, so `Café Déjà Vu` → `cafe-deja-vu` (not `caf%C3%A9`). Chinese characters inside a mixed title are replaced by `-` in slug mode.

Is there a length limit, or any abbreviation? Does it do SEO scoring?

No length limit and no abbreviation: the path is as long as the title (bounded only by the browser address bar). This tool performs a deterministic string transformation only — it does not pick keywords, does not guarantee uniqueness and does not check whether the address is already taken.

Can I change the protocol prefix, or get a protocol-relative address?

The protocol prefix defaults to `https`; type `http` or any valid scheme (a letter followed by letters, digits, `+`, `.` or `-`). A trailing `://` is stripped for you. Leave it empty to get a protocol-relative `//path` address that works over both http and https. An invalid scheme raises the “invalid protocol prefix” error.

Is the text uploaded?

No. The conversion happens entirely in your browser with no network request; closing the page discards it.

Keywords:slug

Related tools