RevealTheme logo

URL Slug Generator

Convert any page title into a clean, lowercase, hyphenated URL slug. The result updates live as you type and keeps only ASCII letters, digits, and hyphens.

How to use this tool

  1. 1

    Type or paste your page title or heading into the input box.

  2. 2

    Watch the slug update instantly below the field as you type — there is no Generate button.

  3. 3

    Click Copy to put the generated slug on your clipboard, ready to paste into your CMS or route.

  4. 4

    Edit the title if the slug was cut off at 80 characters or ends in a stray hyphen, then copy again.

What is a URL slug and how does this tool build one?

A URL slug is the human-readable tail of a web address, such as 'how-to-bake-bread' in /blog/how-to-bake-bread. A good slug is lowercase, uses hyphens between words, and avoids spaces or punctuation that browsers would percent-encode into noise like %20. Readable slugs help SEO by putting keywords in the URL and make links easier to share and trust. This tool transforms your text in a fixed sequence: it lowercases everything, decomposes accented characters and strips the accents (so 'café' becomes 'cafe'), removes every character that is not a-z, 0-9, a space, or a hyphen, trims surrounding whitespace, converts runs of spaces into single hyphens, collapses repeated hyphens, and finally caps the result at 80 characters. The accent-stripping step is followed by an ASCII-only filter, which means non-Latin scripts and emoji are deleted rather than transliterated: Cyrillic, Chinese, Arabic, or Japanese input produces an empty or partial slug. For those languages you need a dedicated transliteration library. The tool is a lightweight helper for Latin-script titles, not a full Unicode slug engine.

Common use cases

  • Generate a clean post slug from a blog headline before publishing in your CMS.

  • Create stable URL paths for product or category pages in an e-commerce store.

  • Turn documentation section titles into anchor-friendly identifiers for deep links.

  • Produce predictable route segments when scaffolding pages in a static site generator.

  • Normalize accented names like 'Renée Dubois' into ASCII slugs such as 'renee-dubois'.

  • Quickly check whether a long title will be truncated by an 80-character URL limit.

Frequently asked questions

Does this tool send my text anywhere?
No. The slug is computed entirely in your browser with plain string operations and there are no network requests, so nothing you type is uploaded or stored on a server.
Why did my non-English title produce an empty slug?
After stripping accents, the tool keeps only a-z, 0-9, spaces, and hyphens. Non-Latin scripts such as Cyrillic, Chinese, Arabic, or Japanese, and emoji, are removed entirely rather than transliterated. Use a transliteration library for those languages.
Should I use hyphens or underscores in slugs?
Hyphens. Google treats hyphens as word separators but reads underscores as joining two words into one token. This tool only ever produces hyphens.
Is there a length limit on the slug?
Yes, the output is capped at 80 characters. The cut is made blindly at character 80, so a long title can be sliced mid-word or left with a trailing hyphen — shorten your title if that happens.
Does the tool remove hyphens at the start or end of my input?
Not always. It trims surrounding whitespace before hyphenating, but a leading or trailing hyphen already present in your text can survive. Input like '- hello -' yields '-hello-'; edit the title to remove edge hyphens.
Does this strip common stop words like 'the' or 'of'?
No. Every word that survives the character filter is kept. If you want shorter, keyword-focused slugs, remove filler words from the title yourself before copying.

Related tools