Slug Generator
Convert titles and text into clean URL-friendly slugs.
Text is normalized locally. Spaces and punctuation become single hyphens; accents are simplified where Unicode normalization allows it.
How to generate a slug
- Paste a title or phrase.
- Review the normalized URL-friendly result.
- Copy the slug into your URL or CMS field.
Slug normalization rules
The tool lowercases text, removes combining accent marks where Unicode normalization permits, turns runs of punctuation or whitespace into one hyphen, and trims hyphens from both ends. Letters and numbers from supported Unicode scripts are retained.
Example: title to URL slug
For example, How to Resize an Image becomes how-to-resize-an-image. A phrase with repeated punctuation or spaces is normalized to the same simple hyphen-separated structure. The generator produces the slug only; your website or CMS decides where that slug sits in the final URL.
Readable slugs vs. URL encoding
Slug generation and URL encoding solve different problems. A slug generator normalizes a title into a readable path segment. URL encoding represents characters safely inside a URL using percent-encoding where required. If you already have a URL component that needs encoding rather than a title that needs normalization, use the URL Encoder & Decoder instead.
Slugs, collisions, and existing URLs
- Two different titles can normalize to the same slug, so a CMS or application still needs a uniqueness rule.
- Changing a slug for an already-published page changes its URL. Preserve the old URL with a redirect when the platform supports it.
- Slug generation is not the same as URL encoding: this tool creates a readable path segment, while URL encoding percent-encodes characters that need a safe representation in a URL.
- Do not treat a generated slug as proof that the target URL is available; check the destination system for an existing collision.
Frequently asked questions
- Can I use the result in a URL?
- Yes. The output is designed as a clean path segment using letters, numbers, and hyphens.
- What happens to punctuation?
- Punctuation and whitespace are converted into separators and repeated separators are collapsed.
- Does it support non-Latin text?
- Yes. Unicode letters and numbers are retained rather than being discarded wholesale.
- Is a slug the same as a full URL?
- No. A slug is normally one readable path segment, such as my-first-post. A full URL also includes the scheme, hostname, and any surrounding path.
- Should I change a slug after a page is published?
- Only when there is a good reason. Changing a published slug changes the page URL, so the old address should normally redirect to the new one when your platform supports redirects.