HCODX/Slug Generator
Accent-aware · multi-line · multiple separators

Slug Generator

Convert any text into a clean, lowercased, hyphen-separated URL slug. Accented characters decompose to ASCII, punctuation disappears, repeated separators collapse — and you can process a list of lines at once.

Source text
URL slug
Slug options
URL Encode
Input lines
0
Output slugs
0
Avg length
Status
Ready
Example

From article title to clean slug

Accents disappear, punctuation drops, spaces become hyphens — but you can paste an entire list and slugify all rows at once.

Input
10 Things About Café Culture in Paris!
Slug
10-things-about-cafe-culture-in-paris
Use cases

What you'll use this for

Any place where text becomes part of a URL, filename, or identifier.

Blog permalinks

Generate a clean URL for every post title before publishing.

Filenames

Sanitize a list of filenames for cross-platform safe naming.

DB string IDs

Stable, human-readable identifiers for slugs columns in databases.

SEO-friendly URLs

Search engines and humans both prefer descriptive URLs over ?id=42.

Step by step

How to slugify text

1

Paste text

One title, or a list of titles (one per line). The tool processes each line independently.

2

Pick a separator

Hyphen is the URL standard, underscore for filenames, dot for some CMSes.

3

Tune options

Lowercase, strip accents, collapse repeated separators, optional max length.

4

Copy or download

Use the action bar to copy or save as .txt.

FAQ

Frequently asked questions

A slug is the human-readable part of a URL — usually a lowercased, hyphen-separated string that identifies a page. In /blog/hello-world, "hello-world" is the slug.

By default they're stripped using Unicode NFD decomposition — "café" becomes "cafe", "naïve" becomes "naive". Toggle Strip accents to keep them as-is.

Yes. The separator selector accepts hyphen, underscore, dot, or empty (concatenated). Hyphen is the SEO-recommended default.

Non-ASCII letters are removed after accent stripping — only a-z 0-9 survives in the output. For Cyrillic, Greek, or CJK slugs you'd want a transliteration library.

No — collisions are easy when titles only differ by punctuation. Append a number, date or short hash in your application layer to enforce uniqueness.

About

About URL slugs

The term "slug" comes from newspaper typesetting, where it referred to a short label identifying a story. On the web, the same word now means the readable bit of a URL — a substitute for a numeric ID that's friendlier to humans, search engines, and link sharing.

Slug best practices

  • Lowercase — avoids case-sensitivity bugs.
  • Hyphens, not underscores — search engines treat them as word boundaries.
  • ASCII-only — no encoding ambiguity in routes and analytics.
  • Short — keep slugs under ~70 characters where possible.
Related

Related tools