Guide

Turn titles and sentences into URL-safe slugs: lowercase or mixed case, no accents, custom separator.

Separator
Letter case
Repeated separators
Slug

URL Shortener

Guide: URL Slug Generator

↑ Back to tool

What is this tool?

This URL slug generator turns titles, headings, and phrases into URL-friendly slugs: lowercase or mixed case, no accents, and a hyphen (-) or underscore (_) between words. It uses Unicode normalization to strip diacritics (e.g. é → e), replaces non-letter/number runs with your separator, and can collapse repeated separators. Copy the result for blog permalinks, CMS fields, API paths, and filenames. All processing runs in your browser—no sign-up.

A slug is the human-readable segment of a URL path (e.g. /blog/my-great-post). Good SEO slugs are short, readable, and avoid spaces and special characters.

💡 Quick tip

Use hyphens for typical web URLs and kebab-case SEO; use underscores if your stack or filenames prefer snake_case. Turn on Collapse repeats so multiple spaces or dashes become a single separator.

Why use a slug generator?

Developers and content editors use a slug generator or permalink generator to turn headlines into safe paths without hand-editing. This tool handles accents, punctuation, and spacing consistently—faster than regex in your head and safer than guessing.

  • Generate SEO-friendly URLs from article titles
  • Create stable filenames and branch names from phrases
  • Preview string to slug output before saving to a CMS or API

Key features

  • Separator — Hyphen (-) or underscore (_).
  • Letter case — Lowercase (typical for URLs) or mixed case if you need preserved casing.
  • Repeated separators — Collapse multiple consecutive separators to one, or keep runs for special cases.
  • Diacritics — Normalized to ASCII-friendly letters (NFD + strip combining marks).
  • Copy slug — One-click copy to clipboard.
  • Session persistence — Input and options are remembered in session storage for this tab.

How to use

  1. Enter text — Paste or type a title, phrase, or sentence in the text area.
  2. Choose options — Pick separator, letter case, and whether to collapse repeated separators.
  3. Copy — Use Copy slug to copy the result. Optionally open the URL Shortener for a short link workflow.

Use cases

ScenarioHow this tool helps
Blog / CMS permalinksTurn post titles into clean url slug values for WordPress, Ghost, or headless CMS.
REST API pathsGenerate path segments from resource names (e.g. product titles) safely.
Files & exportsCreate filesystem-safe names without spaces or special characters.
SEOPrefer readable kebab case url slugs with hyphens for search-friendly URLs.

Best practices

  • Keep slugs short — Remove stop words in the source title when possible, or edit the input before slugifying.
  • Stay consistent — Pick one separator and case style across your site.
  • Avoid duplicate paths — Your CMS or router should still enforce uniqueness; the slug is only one part.

Common mistakes

  • Empty slug — If you only enter punctuation or symbols, the result may be empty. Add meaningful words.
  • Mixed case in URLs — Some servers treat paths as case-sensitive; lowercase is usually safest for public URLs.

FAQ

What is a URL slug?

The part of a URL path after the domain, often built from words (e.g. /docs/url-slug). This tool generates that segment from arbitrary text.

Is this slug generator free?

Yes. It runs in your browser with no sign-up. Use Copy slug to export the result.

Hyphen or underscore for SEO?

Hyphens are widely used for readable URLs (kebab-case). Underscores are often used in code or filenames. Search engines can handle both; choose what matches your site and conventions.

How are accents handled?

Text is normalized and combining marks are removed so accents become plain letters (e.g. café → cafe).

Core: slug generator online, url slug generator, permalink generator, seo friendly slug, string to slug, title to slug, ascii slug transliterate.

Case & style: kebab case url, snake vs kebab slug, lowercase hyphenated filename, wordpress slug rules, next.js dynamic slug sanitize.

CMS & stacks: ghost slug, strapi slugify field, notion share url slug, github repo name slug, docker image tag slug, kubernetes resource name validation.

Pair with String case converter and URL shortener for full link workflows.

Similar tools

You might also find these developer tools useful:

Conclusion

This URL slug generator converts titles into URL-friendly slugs with configurable separators, case, and accent handling. For more string transforms, use the Case Converter; for parsing URLs, use the URL Parser.