How to create a URL slug
- 1.
Paste the title
Type a page title or paste a list of titles with “One slug per line” switched on.
- 2.
Adjust the options
Choose the separator (hyphen is best for SEO), set a maximum length and optionally remove stop words.
- 3.
Copy the slug
Check the URL preview and length, then copy the slug into your CMS, router or file name.
What a slug is and how it is built
A slug is the readable last part of a URL that identifies a page: in example.com/blog/start-a-business the slug is start-a-business. The generator applies these steps:
- transliterates accented and special letters (é → e, ü → u, ß → ss, ł → l),
- replaces
&with “and” and drops apostrophes, - converts to lowercase,
- replaces spaces and punctuation with the separator and removes repeated or trailing separators,
- optionally removes stop words and shortens the slug at a word boundary.
Example: “The 10 Best Cafés in Łódź!” → the-10-best-cafes-in-lodz.
SEO best practices for slugs
- Hyphens, not underscores - Google treats a hyphen as a word separator, while an underscore can join words into one token.
- Short and focused - 3-5 words containing the main keyword, usually under 60-75 characters. Leave out dates if the content will be updated.
- Lowercase only - on many servers
/Pageand/pageare different addresses, which leads to duplicate content. - ASCII only - a URL with “é” or “ü” is technically valid, but when copied it turns into unreadable
%C3%A9sequences (see the URL encoder). - Do not change published slugs - if you must, set up a 301 redirect from the old address, or you lose backlinks and rankings.
Stop words and length limits
The stop-word option removes short function words such as a, an, the, of, in, to, and, for and with, e.g. “How to Start a Business in 2026? A Step-by-Step Guide” → how-start-business-2026-step-step-guide. Use it with care: in this example the result reads worse than the full version, and words like “how”, “not” or “best” stay because they change meaning and often appear in search queries. Readability for people matters more than saving a few characters.
The maximum length cuts at the last complete word, so a 30-character limit turns the title above into how-to-start-a-business-in instead of chopping a word in half.
| Title | Slug |
|---|---|
| How to Start a Business in 2026? A Step-by-Step Guide | how-to-start-a-business-in-2026-a-step-by-step-guide |
| Crème Brûlée & Café Culture in Zürich | creme-brulee-and-cafe-culture-in-zurich |
| Rock’n’roll & blues | rocknroll-and-blues |
For identifiers in code rather than URLs, the case converter produces camelCase, snake_case and other naming styles.
Frequently asked questions
Hyphen or underscore in URLs?
+
How long should a slug be?
+
Are accented characters allowed in URLs?
+
What happens to &, apostrophes and other symbols?
+
Can I generate slugs for many titles at once?
+
Should I change the slug of an existing page?
+
Updated: