Slug Generator
Type into the Text field (sample default is Hello World Example) and the slug updates live. The tool lowercases the string, trims edges, replaces runs of non a–z/0–9 characters with a single hyphen, then strips leading or trailing hyphens.
Updated 2026-08-03 · text
About this tool
This slugger keeps only ASCII letters and digits. Accents, CJK, and symbols become separators or disappear, so Hello World Example becomes hello-world-example. There is no separate Generate button; output mirrors the input field continuously.
How to use
- Open the slugger: Load this page so the Text input and live result are visible.
- Enter the title: Type or paste the phrase you want as a path (sample is Hello World Example).
- Watch the slug: Read the result line as it lowercases and hyphenates your text.
- Copy the path: Copy the slug and paste it into your CMS, router, or filename field.
Common use cases
- Draft blog or CMS URL paths from a working title.
- Normalize filenames or route segments before pasting into config.
- Clean a messy phrase into a hyphenated identifier for docs.
Tips
- Preview the slug after editing; only a–z and 0–9 survive as characters.
- Leading or trailing punctuation is removed so the path does not start with -.
FAQ
Why did accented or non-English letters disappear?
The regex keeps only a–z and 0–9 after lowercasing; other characters become hyphens or are stripped.
Do I need to press a button?
No. The slug updates automatically whenever the Text field changes.
Can the slug start or end with a hyphen?
No. Leading and trailing hyphens are removed after replacement.
Is my text sent to a server?
Slug creation runs in your browser as you type; no account is required.