Skip to content
ToolsOnDuty - free online tools
Generators

Slug Generator

Turn titles and text into clean, URL-friendly slugs.

Free browser toolRuns in your browserNo sign-up
your-slug-will-appear-here

About the Slug Generator

A URL slug is the readable part of a web address, like the end of /blog/my-post-title. Good slugs are lowercase, use hyphens and contain no special characters.

Paste a title and this tool removes accents, strips punctuation, replaces spaces with your chosen separator and trims the result into a clean, SEO-friendly slug.

It all runs in your browser, so nothing you type is uploaded.

Key features

  • Converts any title into a clean slug
  • Hyphen or underscore separator
  • Removes accents and special characters
  • Optional lowercase output

How to use

  1. 1Type or paste your title or text.
  2. 2Choose a separator and case option.
  3. 3Copy the generated slug.

Examples

Blog title to slug
Input: 10 Best Tools for Developers!
Output: 10-best-tools-for-developers

Spaces become hyphens, letters go lowercase and symbols are dropped.

Trim and lowercase
Input: Hello World
Output: hello-world

Surrounding spaces are removed and the result is lowercased.

Frequently asked questions

Why use hyphens instead of underscores in URLs?
Search engines treat hyphens as word separators, so hyphenated slugs are generally better for SEO. Underscores are still supported if you prefer them.
What does the slug generator remove?
Spaces and punctuation are replaced with your chosen separator and accents are simplified, leaving clean, URL-safe letters, numbers and separators.
Can I choose the separator and case?
Yes. You can switch between hyphen and underscore separators and choose whether the slug is lowercased.

Open a related tool to prepare your files or refine the finished result.