What Is a URL Slug?
A slug is the readable last part of a web address that names a page. In example.com/blog/best-free-writing-tools, the slug is best-free-writing-tools. A good slug uses simple, safe characters, usually lowercase letters, numbers and hyphens, so people and search engines can tell what the page is about before they open it. Slugs also appear in search results, shared links and browser tabs, so a clean one makes your pages look more trustworthy.
How to Use the Text to Slug Converter
- Type or paste a title into the left box. To convert many titles at once, put each one on its own line.
- Read the slug on the right. It updates as you type, with a note on its length.
- Adjust the separator, maximum length and the checkboxes to suit your site.
- Press Copy slug, or Download to save a list.
Use Copy link with my text to share the tool with your text and settings already filled in. Anyone who opens that link sees the same result.
How the Converter Builds a Slug
- Optionally changes "&" to "and".
- Removes apostrophes inside words, so "there's" becomes "theres" and "O'Riley" becomes "oriley".
- Turns accented letters into plain ones, so é becomes e, ü becomes u and ß becomes ss.
- Converts to lowercase, if that option is on.
- Replaces spaces and symbols with your chosen separator, and collapses repeats so you never get a double hyphen.
- Trims separators from the start and end, and shortens the slug to your maximum length at a whole word.
Options Explained
- Multi-line mode: on by default, so each line becomes its own slug. Turn it off to join all lines into a single long slug.
- Lowercase: recommended. Some servers treat capital letters as a different address.
- Remove small words: drops words like "a", "the" and "of" for a shorter slug. It keeps them if removing them would leave nothing.
- Make duplicates unique: adds -2, -3 and so on when two titles produce the same slug, which is useful for lists of filenames or posts.
- Prefix: adds a path such as https://example.com/blog/ in front of every slug, so you get complete addresses.
- Maximum length: cuts the slug at a word boundary rather than in the middle of a word.
Slugs for Arabic and Other Non-English Text
By default, the tool keeps only the letters a to z and numbers, so a title written entirely in Arabic or Russian would produce nothing. You have two choices.
- Keep non-Latin letters leaves your original script in the slug, for example
مرحبا-بالعالم. Modern browsers display it correctly, but when you copy the address it may appear as a long string of percent codes. See what those mean in the URL Encoder/Decoder. - Convert to Latin letters transliterates Cyrillic, Greek and Arabic, so "Привет мир" becomes
privet-mir. Arabic is usually written without short vowels, so the result is approximate and often worth editing by hand.
SEO Best Practices for URL Slugs
- Use hyphens to separate words. Search engines treat them as word breaks, while underscores can join words together.
- Keep it short and descriptive. Aim for about three to five meaningful words. About 60 characters is a practical guide for readability, not a rule from Google.
- Use lowercase for consistency.
- Include your main topic once, in plain words.
- Avoid dates and years that will go out of date.
- Do not change a live slug without redirecting the old address to the new one.
A good real example is bitcoin-tax-calculator, used by the Bitcoin Tax Calculator on Lumara's crypto site. It is short, lowercase, hyphenated and says exactly what the page does. Paste "Bitcoin Tax Calculator" into the converter above and you will get that same slug.
Common Slug Mistakes
- Leaving the whole title in, including words like "the", "and" and punctuation, which makes the address long.
- Using spaces, which become %20 in links and look messy.
- Mixing capital letters, which can create duplicate pages. If a title needs its capitalization fixed first, use the Text Case Converter.
- Using the same slug for two pages.
Converting Many Titles or Filenames at Once
Slugs are not only for web pages. Paste a list of song titles, product names or document titles, one per line, and you get a clean filename for each. Add a prefix to turn them into full addresses, and turn on the unique option so repeated titles do not collide.
Examples
Yoga vs. Pilates: Which is Right for You?becomesyoga-vs-pilates-which-is-right-for-you.Baba O'Riley — The Whobecomesbaba-oriley-the-who. The apostrophe inside the word is removed.Café & Co's Guidebecomescafe-and-cos-guide, with the accent removed and the ampersand turned into "and".- With small words removed,
The Art of the Dealbecomesart-deal. - With a maximum length of 20, a long title is cut at a whole word:
10-best-free-tools. - Arabic text kept as written becomes
مرحبا-بالعالم, and Russian text converted to Latin letters,Привет мир, becomesprivet-mir.
What You Can Convert, and Where Slugs Are Used
Type or paste one title, or a list with one title per line. You can also open a plain text file of up to 5 MB, or share a link that carries your text. Each line becomes its own slug, or all lines join into one if you turn off multi-line mode.
Slugs most often go into blog post and product page addresses, category names and filenames. The prefix option adds a path such as https://example.com/blog/ to every slug, so you get complete addresses ready to paste.
Frequently Asked Questions
What is the difference between a slug and a URL?
The URL is the full address. The slug is only the part that identifies the page, usually after the last slash.
Should I use hyphens or underscores?
Hyphens. Search engines read them as word separators, and they are the common convention for page addresses.
Does the slug affect rankings?
A clear slug helps people and search engines understand a page, but it is a small signal. Quality content matters far more, and no tool can guarantee a ranking.
Can I use Arabic in a slug?
Yes, with "Keep non-Latin letters". Test your links after publishing, because some systems show them as percent codes.
Why is my slug empty?
The text contains no Latin letters or numbers. Turn on "Keep non-Latin letters" or the Latin conversion option.
Is my text sent or saved?
The conversion runs in your browser. The tool does not send or save your text. If you use Copy link with my text, your text is placed in the link you copy, so only share it with people you trust. The page also loads a cookie banner and an advertisement from third-party services, described in our Privacy Policy.
Related Tools and Guide
- URL Encoder/Decoder Encode or decode URLs and query strings with several encoding types and character sets, and break any link into its parts.
- Meta Tag Generator Create SEO, Open Graph and X card meta tags with live Google and social previews, robots and language settings, and import of existing tags.
- Text Case Converter Change text to sentence, lower, UPPER, Title or Capitalized case, plus camelCase, snake_case and kebab-case. Keeps names and acronyms.
- Read the guide: Text to Slug Converter: Create SEO-Friendly URL Slugs A step-by-step article about this tool.