<link rel="stylesheet" type="text/css" href="/mirawhite.css">

URL slug generator

Paste your page or article titles, one per line: each becomes a short, readable slug for a URL, a file name or a CMS, for free and without leaving your browser.

Free, no sign-up, no limit Runs in your browser: your text and files are never sent or saved.

Slug generator

Options
Characters, blank for no limit

How to use it

  1. Paste one title per line, or try the example.
  2. Pick a separator (hyphen, underscore or dot) and, if needed, a maximum length, stop-word removal, Latin letters only, or unique slugs (-2, -3) for a bulk import.
  3. Copy the slugs: line 1 of the result matches line 1 of your list.

Example

Input

Why We Love Rock & Roll: A Beginner’s Guide
10 Things I Learned at Straße Café in 2024
Don't Panic! The "Hitchhiker's" FAQ

Output

why-we-love-rock-and-roll-a-beginners-guide
10-things-i-learned-at-strasse-cafe-in-2024
dont-panic-the-hitchhikers-faq

Good to know

  • Accents and ligatures are converted (é → e, œ → oe, ß → ss); apostrophes are removed, so “don’t” becomes “dont”.
  • “&” becomes “and” on this English page (“et” on the French page).
  • Letters from other scripts (Greek, Cyrillic, Chinese…) are kept as they are unless “Latin letters only” is ticked: Greek and Cyrillic are then romanized with common Russian-style rules, other scripts are dropped. Emoji and symbols are always dropped.
  • The maximum length never cuts a word, except a single word longer than the limit.
  • Everything runs in your browser: your titles are never sent to a server.

Frequently asked questions

What is a URL slug?

The readable part of a URL that names one page, after the domain and folders: in example.com/blog/why-we-love-rock-and-roll, the slug is “why-we-love-rock-and-roll”. It usually comes from the title, in lowercase, with words joined by hyphens.

What makes a good slug for SEO?

Short, lowercase, made of the words people search for, with hyphens between them and no dates or IDs that will age. Tick “Remove stop words” to drop a, an, the, of, and… and set a maximum length to keep long titles readable.

Should I use hyphens or underscores in URLs?

Hyphens. Google’s URL guidelines recommend them because search engines read a hyphen as a space between words, while an underscore can join the words together. Underscores and dots are available here for file names or systems that require them.

How are accents, apostrophes and “&” handled?

Accents and ligatures become plain letters (é → e, œ → oe, ß → ss), apostrophes and quotes disappear without leaving a gap (“don’t” → “dont”), and “&” becomes “and”. Emoji and symbols are dropped; Greek, Cyrillic or Chinese letters are kept, unless you tick “Latin letters only”, which romanizes Greek and Cyrillic (Москва → moskva) and drops other scripts.

How long should a URL slug be?

There is no official limit, but a few words that describe the page are easier to read and share. Type a maximum length (1 to 500 characters): the tool always stops at a whole word, so a slug never ends with half a word.

How do I generate a slug in PHP, Python or JavaScript?

Laravel has Str::slug($title), Django has django.utils.text.slugify(title), and in JavaScript the slugify package from npm does the job. For a list of titles to paste into a CMS, this page handles one title per line and lets you copy or download every slug at once.

← Back to all tools