Slug Generator

Turn any title, heading, or phrase into a clean, SEO-friendly URL slug. Strips accents, removes special characters, and supports hyphen or underscore separators.

Advertisement
Ad Space Reserved

Your Text

Paste or type a title, then choose your options.

Options

Your slug will appear here

Type or paste a title on the left to generate a URL slug.

Advertisement
Ad Space Reserved
Reference

What Makes a Good URL Slug?

Best practices for clean, SEO-friendly slugs

SEO
Keep it Short & Descriptive

Search engines read URL slugs as ranking signals. Aim for 3–5 meaningful words that describe the page content. Avoid stop words like "a", "the", and "of" where possible.

Format
Hyphens Over Underscores

Google treats hyphens as word separators in URLs, but treats underscores as joining characters. Use hyphens (-) for most web slugs to ensure words are indexed individually.

Encoding
ASCII-Safe Characters Only

Accented characters like é, ü, or ñ get percent-encoded in URLs, making them unreadable. This tool normalises accents to their ASCII equivalents so your slugs stay clean in any browser.

Development
Underscores for Code Identifiers

When generating slugs for filenames, database fields, or template keys rather than public URLs, underscores are the conventional choice (e.g. blog_post_title).

All processing happens in your browser. Your text is never sent to any server — it stays completely private on your device.

FAQ

Common Questions

What is a URL slug?
A URL slug is the part of a web address that identifies a specific page in a human-readable way. For example, in example.com/blog/my-first-post, the slug is my-first-post. Good slugs are lowercase, use hyphens as separators, and contain only the most relevant words.
Should I use hyphens or underscores in slugs?
For public URLs and blog posts, use hyphens. Google's own guidelines recommend hyphens as word separators because they treat each word as distinct for indexing. Underscores are treated as joining characters, so my_post may be indexed as a single word "mypost". Use underscores only when generating slugs for internal identifiers, filenames, or database keys.
How does the tool handle accented or non-ASCII characters?
Accented letters like é, ü, ñ, or ç are normalised using Unicode decomposition and then stripped of their diacritic marks, leaving the base ASCII character (e → e, ü → u, etc.). Any remaining non-ASCII characters that cannot be mapped are removed entirely, ensuring the slug is safe to use in any URL without percent-encoding.
Does the tool remove stop words automatically?
No — this tool preserves all words from your input so you stay in full control of the slug. Removing stop words automatically can sometimes change the meaning of a slug unexpectedly. If you want to shorten a slug, simply edit the input text to remove the words you don't need before generating.
Does the tool store or transmit my text?
No. All slug generation runs entirely in your browser using JavaScript. Nothing is ever sent to any server. You can verify this by disconnecting from the internet — the tool will continue to work perfectly.
Advertisement
Ad Space Reserved