Input

Slug Output

Slug Examples

Input text:

Input

Output slug (hyphen):

Slug Output

What Is a URL Slug?

If you've ever had to manually write a URL-friendly version of an article title, you know how tedious it gets — replacing spaces with hyphens, lowercasing everything, and dealing with accented characters like é or ü. A slug is that clean, readable part of a URL that identifies a page: in https://example.com/blog/hello-world-2024 the slug is hello-world-2024. Google recommends short, descriptive URLs — which is exactly what a good slug gives you. According to the URI specification (RFC 3986), URLs should use unreserved characters like letters, digits, and hyphens. CMS platforms like WordPress and Shopify auto-generate slugs — but this tool lets you do it in bulk, your way. For URL encoding tips, see MDN encodeURIComponent. Slugs:

  • Use only lowercase letters, digits, and separators (hyphens or underscores)
  • Replace spaces and special characters with the separator
  • Remove accents and diacritics (e.g. ée)
  • Are concise and descriptive for SEO

How to Use This Tool

1

Choose a Separator

Select Hyphen (-) for standard web slugs (preferred for SEO). Select Underscore (_) for database column names or file names.

2

Paste Your Text

Type or paste any text — article titles, headings, product names. Each line is converted to its own slug. The output updates automatically.

3

Copy or Download

Click Copy to put all slugs on your clipboard, or Download to save as a .txt file.

Frequently Asked Questions

Hyphen or underscore — which should I use?

Google recommends hyphens for URLs because it treats them as word separators, improving keyword recognition. Underscores are treated as word joiners — hello_world is one word to Google. For SEO, use hyphens.

Are accented characters supported?

Yes. Accented characters like é, ü, and ñ are converted to their ASCII equivalents (e, u, n) using Unicode normalisation before slugification.

Can I convert multiple lines at once?

Yes. Each line in the input is treated independently and produces its own slug on a corresponding output line. This is useful for batch-converting a list of article titles.

Related Tools