URL Slug Generator

Input Text

Generated Slug

Waiting for input...

FAQ

What can the Slug Generator do?

This tool converts any text (e.g., article titles, category names) into a URL-friendly slug string. Slugs are commonly used in website URLs to improve readability and SEO.

What are the slug generation rules?

The tool performs the following steps:

  • Trims leading/trailing spaces.
  • Replaces spaces and special characters (e.g. !@#$) with the chosen separator (hyphen, underscore, or none).
  • Converts case based on the selected option.
  • Optionally limits the maximum length.
  • Removes extra separators from the beginning and end.

What is the difference between separator options?

  • Hyphen (-): The most common URL separator, e.g. 'my-article-title'.
  • Underscore (_): Sometimes used for SEO, but less recommended than hyphens.
  • None: Removes all separators, e.g. 'myarticletitle'.

How does the case option affect the slug?

  • Lowercase: Converts all letters to lowercase, e.g. 'hello-world'.
  • Uppercase: Converts all letters to uppercase, e.g. 'HELLO-WORLD'.
  • Preserve: Keeps original case, e.g. 'Hello-World'.

What happens when I set a max length?

If the generated slug exceeds the set length, it will be truncated. Choose a value that fits your URL constraints.

Is my text uploaded to a server?

No. All conversions are performed locally in your browser. Text is never uploaded or stored.