Slug Generator
Convert a title or sentence into a URL-friendly slug string.
Category: Text Tools
When to use?
Use it to turn a blog post title into a URL path, or to convert a filename with spaces and special characters into a safe identifier.
How to use
- Enter text.
- Choose whether to keep non-Latin characters and the separator (hyphen/underscore).
- Copy the converted slug.
Input Explanation
Enter the source string to convert into a slug (e.g. a blog post title).
Calculation Basis
It removes special characters via regex and replaces spaces with the chosen separator (hyphen or underscore). The keep-original option decides whether non-Latin characters remain or only letters/numbers are kept.
Usage Examples
- Make a blog URL - Convert a post title into a hyphen-joined URL slug.
- Clean a filename - Turn a phrase with spaces and special characters into a stable identifier.
- Make anchor IDs - Turn a heading into a slug to use as a section link ID.
Examples
- "Hello World!" → "hello-world"
- With "keep original" off, only English letters and numbers remain
Cautions
- Counts can vary by how line breaks are handled.
- Results may differ from other tools depending on whitespace and Unicode handling.
Guides
What a URL slug is
A slug is a short lowercase, hyphen-based string used in URLs. A title with spaces becomes a form like "blog-title-example".
SEO and readability
A clear slug helps search engines understand the page. A short slug with key keywords is better for SEO.
FAQ
Can it keep non-Latin characters?
Yes — turn on the keep-original option to make a slug with the original characters, or off to keep only letters/numbers.
Can I choose the separator?
Choose between a hyphen (-) and an underscore (_).
How is uppercase handled?
Slugs are all lowercased for consistent behavior in URLs.
What happens to special characters and spaces?
Spaces become the separator, and special characters like slashes or question marks are removed.
Related Tools
- Character Counter - Count characters with and without spaces, and line count, in real time.
- Byte Counter - Calculate the byte length of text when stored as UTF-8.
- Case Converter - Convert text, variable names, and filenames to UPPER, camelCase, snake_case, kebab-case, and more.
- Whitespace Remover - Remove whitespace in various ways — leading/trailing, duplicate, or per-line.
- Duplicate Line Remover - Remove duplicate lines from text, keeping only unique lines.
- Line Sorter - Sort each line of text in ascending/descending order, or shuffle randomly.