HelperCrate

Slug Generator

Turn titles into clean URL slugs with transliteration and separator options.

Your files never leave your device. Everything runs in your browser.

What Slug Generator does

Slug Generator turns a title, headline or file name into a clean, URL-safe slug as you type. It removes punctuation, folds accents, collapses repeated separators and, with the Lowercase box ticked as it is by default, puts everything in lower case. You choose hyphens or underscores, optionally cap the length, and copy the finished slug with one button.

The conversion follows a fixed pipeline, so results are predictable: the text is lowercased if requested, normalised to NFKD, and combining accent marks are stripped so accented Latin letters fold to their base forms. Every character that is not a letter, digit, space, hyphen or underscore then becomes a space, and runs of spaces, hyphens and underscores collapse into the single separator you picked. “Café au Lait & Crème” becomes cafe-au-lait-creme, and “My Awesome Blog Post!” becomes my-awesome-blog-post.

Because everything runs in the page, drafts, private titles and client names can be converted without pasting them into a form that stores them. The tool keeps no history and sends nothing anywhere.

How to use Slug Generator

  1. Type or paste the title into Title or text — the slug updates on every keystroke.
  2. Choose Hyphen (-) or Underscore (_) under Separator: hyphens are the web convention, underscores suit file names and code identifiers.
  3. Leave Lowercase ticked for the usual all-lower-case slug, or untick it to keep the original capitalisation.
  4. Set Max length if the destination has a limit; the default is 80 characters and 0 means no limit.
  5. Press Copy slug to put the result on your clipboard.

Features

Tips and common mistakes

Frequently asked questions

What is a slug?

A slug is the readable part of a URL that identifies a page, usually built from its title. A page titled “10 Tips for Better Sleep” would typically live at /10-tips-for-better-sleep.

Do hyphens or underscores work better in URLs?

Search engines treat hyphens as word separators, so /my-blog-post reads as four separate words, while underscores are generally treated as part of one long word. Use hyphens for web addresses and keep underscores for file names or code, where they are the norm.

Why did my accented or non-Latin text disappear?

The tool removes accents by mapping accented Latin letters to their base forms, such as é to e. Characters without a mapping — including ß, ø, Cyrillic, Greek and CJK — cannot be folded and are dropped, so a Russian or Japanese title can produce an empty slug. Transliterate it first or type it in Latin letters.

Can I keep capital letters in a slug?

Yes. Untick Lowercase and the original capitalisation is kept, so “My Blog” becomes My-Blog. All-lower-case is usually safer because some servers treat /My-Blog and /my-blog as different addresses.

What does max length 0 do?

Zero disables the length cap entirely. Any positive number cuts the slug at that many characters and then removes a trailing separator left behind by the cut. The field accepts values up to 200.

Is anything sent to a server?

No. The slug is built in your browser from what you type, and nothing is uploaded, stored or logged.

Slugs are generated entirely in your browser — the text you type is never uploaded or stored.