hello-world-cafe-creme
About URL Slug Generator — Text to Slug (Slugify)
A slug is the clean, URL-safe version of a title — the part of a link that humans and search engines actually read, like `/blog/my-first-post`. This slugify tool turns any text into one: it lowercases the words, strips accents (café becomes cafe), removes punctuation, and collapses every run of spaces or symbols into a single separator.
Use it when you're naming routes, anchors, file names, or permalinks and want something predictable instead of `My%20First%20Post!`. It handles accented and non-Latin characters gracefully so the output stays portable across systems.
This URL slug generator runs entirely in your browser — nothing you type is uploaded, so it works offline and keeps your drafts private.
Features
- Strips accents via Unicode normalization (café → cafe)
- Choose a dash (-) or underscore (_) separator
- Toggle lowercasing and accent stripping to taste
- Collapses spaces and punctuation, trims stray separators — fully offline
How to use
- Type or paste your text into the input pane.
- Pick a separator (- or _) and toggle lowercase or strip-accents as needed.
- The slug updates live in the output pane.
- Copy the result and drop it into your route, file name, or permalink.
Frequently asked questions
What is a URL slug?
A slug is the human-readable, URL-safe portion of a web address that identifies a page — for example "my-first-post" in /blog/my-first-post. Good slugs are lowercase, hyphen-separated, and free of accents and punctuation.
Should I use a dash or underscore in slugs?
Hyphens (-) are the convention for URLs and are treated as word separators by search engines, so they are usually the better choice for permalinks. Underscores are common in file and variable names. This tool supports both.
How are accented and non-Latin characters handled?
With strip-accents on, the tool applies Unicode NFKD normalization and removes the combining diacritic marks, so "Crème Brûlée" becomes "creme-brulee". Characters with no ASCII base are dropped when collapsing non-alphanumerics.
Is my text sent to a server?
No. Slugifying happens entirely in your browser using the built-in String.normalize API. Your input never leaves your device, so it works offline and stays private.
Related tools
Everything runs locally in your browser — your input is never uploaded.