Slug Generator

Type a title and get a lowercase, hyphenated slug suitable for blog posts, product pages and documentation URLs.

How it works and known limits

How the slug is built

The title is normalised with Unicode NFKD, combining marks are stripped, and the result is lowercased. Any character outside a-z, digits, spaces and hyphens is replaced with a space; runs of spaces collapse to the chosen separator. Consecutive hyphens are reduced to one.

Non-Latin titles

Because the final filter keeps only ASCII letters and digits, Chinese, Japanese, Arabic and Cyrillic titles lose those characters entirely. Transliterate the title before pasting it. Accented Latin titles such as Cafe Optimise become cafe-optimise.

Practical uses

Generate stable URLs for blog posts and documentation pages. Keep slugs short, and avoid setting the separator to none on long titles: the result becomes one continuous word that is harder to read.

How to create a URL slug (with screenshots)

Turn a title into a clean, lowercase URL slug with your choice of separator.

1

Open the Slug Generator

Open the Slug Generator page. The title is where your work begins; the result appears on the right.

Slug Generator page before any input
2

Enter your input

Type the page title you want to turn into a slug.

Sample data entered in Slug Generator
3

Set the options

Choose the separator between words. A hyphen is the common choice for URLs.

Options selected in Slug Generator
4

Read the result

The slug updates as you type: accents are removed, punctuation dropped and words joined by the separator.

Result shown by Slug Generator

Tip: Switch the separator to an underscore if your routing prefers my_first_post over my-first-post.

Frequently asked questions

What characters are removed?

Accents are folded to ASCII, punctuation is stripped, and spaces become the separator you choose.

Can I use an underscore separator?

Yes. Pick hyphen, underscore or none from the separator option.

Does it work with non-Latin scripts?

Non-Latin characters that cannot be folded to ASCII are removed. For Chinese or Japanese titles, add your own transliteration first.

Is anything stored?

No. Generation is entirely client-side.

Page last reviewed: