DevToolbox

Slugify — URL Slug Generator

Slugify — URL Slug Generator: Paste a title or phrase to get a clean URL slug: accents are stripped, the text is lowercased, and spaces and punctuation become hyphens. Choose the separator and whether to keep numbers. Useful for blog post URLs, file names and IDs — and it runs entirely client-side.

Data as of 2026-06-13.

How it works

A slug is the human-readable, URL-safe part of a web address, such as the my-great-article in /blog/my-great-article. Good slugs are lowercase, use only letters, numbers and a single separator, and contain no accents or punctuation.

This tool normalizes the text to NFKD form and strips combining diacritical marks (so é becomes e), optionally lowercases it, then collapses every run of non-alphanumeric characters into your chosen separator and trims separators from the ends. You can keep or drop numbers and switch between hyphen and underscore.

Runs fully client-side in your browser. Source: published web standards (RFCs and the WHATWG/W3C specifications), as implemented by your browser. Verified 2026-06-13.

Frequently asked questions

Why are hyphens preferred over underscores in URLs?

Search engines have long treated hyphens as word separators in URLs, while underscores can join words together. Hyphens are the conventional choice for readable, SEO-friendly slugs, but underscores are offered for filenames and identifiers.

How are accented characters handled?

The text is Unicode-normalized and combining diacritical marks are removed, so accented letters are reduced to their base form (for example ü to u) before the slug is built.

Does it remove duplicate separators?

Yes. Consecutive non-alphanumeric characters collapse into a single separator, and leading or trailing separators are trimmed, so you never get double hyphens or edge separators.

Related tools

Last updated: 2026-06-13