TOP

Free exact browser converter

Slug Generator

Turn a title into a lowercase URL slug. Remove combining accents, choose Unicode or ASCII letters, and collapse separators into hyphens.

No signupRuns locally in your browser

Interactive tool

Slug Generator

Ready

Processing mode

Choose a clear output representation.

Detailed conversion guide

How Slug Generator Works

The generator decomposes Unicode text, removes combining accent marks, lowercases it and replaces runs of separators with one hyphen. Leading and trailing hyphens are removed.

Unicode mode retains letters and numbers from non-Latin scripts. ASCII mode retains only a-z and 0-9, so it cannot transliterate a Chinese or Arabic title into readable Latin words.

InputOutputMeaning
Crème brûlée & cafécreme-brulee-cafeDefault example
你好 World你好-worldBoundary example

JavaScript Example

Runnable example for the default sample. The tool also validates its full input contract.

const slug = input.normalize("NFKD").replace(/\p{M}/gu,"").toLowerCase()
  .replace(/[^\p{L}\p{N}]+/gu,"-").replace(/^-+|-+$/g,"");

Formats, Boundaries and Limitations

Slug generation is lossy and different titles can produce the same slug. Confirm uniqueness in your own route database before publishing.

This tool creates the slug component only. It does not register a domain, create a page or percent-encode a complete URL.

Related converters

Choose the tool that matches your text or byte workflow.

Advertisement

Sponsored link