Skip to content

URL slug generator

Turn any title into a clean, URL-safe slug, with accented letters transliterated and underscores handled as word breaks.

Separator
characters

Search engines display roughly the first 60 characters of a URL in results.

Generated slug

URL slug

-

Type a title to see its slug.

Length
-

-

How it works

A URL slug generator converts any text, including special characters, accented letters and spaces, into a clean, lowercase, URL-safe slug with hyphen or underscore separators, updating as you type.

  1. Type or paste a title

    The slug updates live as you type.

  2. Pick a separator

    Hyphens are the SEO default; underscores are sometimes required by older systems.

  3. Copy the slug

    Use it in your CMS or paste it straight into the preview URL row.

What makes a good URL slug

A good slug is lowercase, uses hyphens to separate words, removes special characters, and is concise. Good slugs improve SEO and make URLs easier to read and share.

  • Lowercase only: mixed case in a URL is confusing and some servers treat it as a different page entirely.
  • Hyphens over underscores: Google historically treats a hyphen as a word boundary and an underscore as a joiner, so "hello-world" indexes as two words while "hello_world" indexes as one.
  • Short and specific: keep the words that describe the page and drop filler words like "a", "the" and "of" when they only add length.
  • ASCII only: accented and non-Latin characters are transliterated or removed so the slug works reliably across servers, CDNs and databases.

Nothing leaves your device

The conversion runs entirely in your browser using JavaScript. Your title is never sent to a server, so it works the same for an unpublished draft as for a public page.

Frequently asked questions

How do I convert a blog post title to a URL slug?

Type or paste the title into the input field. The slug generates as you type: spaces and underscores become hyphens (or the other way around, your choice), special characters are removed, letters are lowercased, and repeated separators collapse into one. The preview URL row shows how the slug looks inside an actual path.

What makes a good SEO-friendly URL slug?

A good slug is lowercase, uses hyphens to separate words, contains only ASCII letters, numbers and hyphens, and is as short as possible while still describing the page. Keep slugs under about 60 characters and drop filler words like "a", "the" and "of" when they only add length.

Does this slug generator handle accented letters and underscores correctly?

Yes. Common accented and special characters transliterate to their plain equivalent (é becomes e, ü becomes u, ñ becomes n and so on) before the rest of the text is processed. An underscore in your input is treated the same as a space, so "my_file_name" becomes "my-file-name" rather than merging into one word.

Should I use hyphens or underscores in URL slugs?

Use hyphens for anything public-facing. Google historically treats hyphens as word separators and underscores as character joiners, meaning "hello-world" is indexed as two separate words while "hello_world" is indexed as one. Most CMS platforms and SEO guidelines default to hyphen-separated slugs for this reason; the underscore option here exists for systems that specifically require it.

What happens if my title has no letters this tool can convert?

This tool converts Latin letters, numbers and common accented Latin letters. Text written entirely in another script, such as Korean, Japanese or Arabic, has no Latin equivalent to fall back on, so the result is empty and the tool tells you directly rather than showing a blank slug with no explanation.

Is my input text processed on a server?

No. The slug conversion runs entirely in your browser using JavaScript. Your text is never sent to any server, and the slug updates live as you type with no network request involved.