Text to URL Slug Converter

Convert any text to a clean URL-friendly slug. Remove special characters, spaces, and accents.

About this calculator

Convert any text into a URL-friendly slug with hyphen or underscore separators. The result updates as you type and has a copy button.

Use it to create page URLs, file names, CSS class names or database keys from plain titles.

How to use it

  1. Type the Input Text.
  2. Pick Hyphen or Underscore.
  3. Copy the slug from the output box.

Rules

A slug is the readable part of a URL. The tool lower-cases the text, replaces accented letters with plain ones (é becomes e), removes symbols, turns spaces into the chosen separator and collapses repeats. Hyphens are the standard word separator for search engines, while underscores join words into one in some systems.

Worked example

Hello World! Café 2026

Slug with hyphenshello-world-cafe-2026
Slug with underscoreshello_world_cafe_2026

Tips and common mistakes

  • Keep slugs short: three to five meaningful words.
  • Use hyphens, not underscores, for SEO.
  • Drop filler words such as a, the and of if the meaning stays clear.
  • Never change a live URL without a 301 redirect.
  • Avoid dates in slugs for evergreen articles.

Frequently asked questions

What is a URL slug?

The part of a web address that identifies a page, such as /hello-world.

Hyphen or underscore in slugs?

Hyphens. Google treats them as word separators.

Should slugs be lower case?

Yes, to avoid duplicate URLs.

How long should a slug be?

Under about 60 characters.

Are accented characters allowed?

Better to convert them to plain letters.

Does the slug affect SEO?

Slightly. A clear, keyword-bearing slug helps users and search engines.

Related tools