Two slugs can describe the same page and still not be equal. my_first_blog_post and my-first-blog-post carry the same three words, but only one of them uses the separator search engines document for readable URLs, and the other hides its word boundaries the moment the link is underlined. If you have ever typed a slug by hand and guessed which separator to use, this guide settles the question, then shows you how to check any slug with the free URL Slug Checker on Ovatly.

Contents

  • Quick answer
  • What the separator in a slug has to do
  • The case for hyphens
  • Where underscores fall short
  • What the checker actually flags
  • How to check a slug, step by step
  • Worked example: an underscored slug, cleaned
  • Limitations and honest tradeoffs
  • Common mistakes
  • FAQs
  • Conclusion

Quick answer

Use hyphens. Hyphens are the separator search engines document for readable URLs, and that is the whole answer. Underscores are not an error: they work, and the URL Slug Checker flags them as a quality issue rather than a fault. But lowercase hyphenated slugs work everywhere, while an underscore is easy to miss when a link is underlined, so the hyphen is the right default for every slug you write.

What the separator in a slug has to do

A slug is the last part of a URL, the part that names the page: in example.com/blog/my-first-blog-post, the slug is my-first-blog-post. Because a URL cannot contain ordinary spaces, the words of the title have to be joined by something, and that something is the separator. That separator carries the whole readability of the address.

Two audiences read that separator. The first is the search engine, which documents hyphens as the separator for readable URLs. The second is the human being who sees the link in a message, a document or a search result and decides whether it looks trustworthy enough to click. A good separator serves both: it marks clearly where one word ends and the next begins, for software and for eyes alike. That is the standard the underscore has to be judged against.

The case for hyphens

The hyphen wins on the documented facts. Hyphens are the separator search engines document for readable URLs, so a hyphenated slug follows the published convention. The checker takes the same position: it follows common practice rather than one CMS's rules, and common practice is lowercase words joined by single hyphens.

There is also a portability argument. A few platforms also allow underscores or uppercase letters in slugs, so an underscored slug may work perfectly well inside one system. But lowercase hyphenated slugs work everywhere, on every platform, with no exceptions to remember. Choosing hyphens is not a bet on a ranking trick; it is choosing the separator that the documentation describes and every system accepts.

Where underscores fall short

Underscores fail on visibility, and the failure happens at the worst possible moment. Links are very often displayed underlined, in documents, emails and many website styles. An underscore sits on the same baseline as the underline itself, so in an underlined link like my_first_blog_post, the underscore merges into the line and effectively disappears. The word boundary it was supposed to mark vanishes exactly where the reader is looking.

Read the two forms side by side as a reader would. In my-first-blog-post, each hyphen stays visible above the underline, and the three words separate cleanly. In my_first_blog_post, the reader has to guess whether they are looking at three words, one long word, or spaces they cannot see. A slug is often the only preview a reader gets of a page before clicking, and an address that cannot be read at a glance fails at its one job. That readability gap, not any technical fault, is why the checker treats the underscore as a quality issue.

What the checker actually flags

Precision matters here, because the checker does not call underscores an error. It flags them as a quality issue, in the same report where it lists the harder faults. Paste a slug, or a full URL whose last segment is read as the slug, and the checker reports uppercase letters, spaces, underscores, stray symbols, doubled hyphens and excess length, each explained in plain language. Underneath the report it produces a cleaned version of the slug that you can copy straight into your CMS.

So the verdict on underscores is measured: they work, nothing breaks, and a page with an underscored slug still loads and can still be found. The flag is there because the documented separator is the hyphen, and because the underscore lets readers down when the link is underlined. Quality issue, not error, is exactly the right label.

How to check a slug, step by step

  1. Open the URL Slug Checker and paste your slug on its own, or paste a whole URL and let the checker read the last path segment.
  2. Read the issue list. Each problem, from uppercase letters to an underscore, is explained in plain language rather than codes.
  3. Compare the cleaned slug shown below the verdict with what you typed, and check that the words still read the way you intended.
  4. Copy the cleaned slug with the Copy button and use it in your page, post or product URL before you publish.

Worked example: an underscored slug, cleaned

Suppose you typed the slug for a new post by hand and produced My_First_Blog_Post! Run it through the checker and it reports the issues: uppercase letters throughout, underscores joining the words, and a stray symbol, the exclamation mark, that does not belong in a slug. The cleaned version it hands back is my-first-blog-post.

Look at what changed and what did not. The words are untouched and in the same order. The capitals are lowered, the exclamation mark is removed, and each underscore becomes a hyphen, so the word boundaries stay visible even when the finished link is underlined. A spaced title like "My First Blog Post!" gets the same treatment and also comes out as my-first-blog-post: three reported issues, one tidy result.

Limitations and honest tradeoffs

The checker examines one slug at a time, or the last segment of one full URL, so it is a pre-publish check, not a bulk audit of a whole site. It also follows common practice rather than one CMS's rules: a platform that happily accepts underscores or uppercase will not break anything, and the checker will still flag them, because its standard is the convention that works everywhere.

Two of its rules deserve the same honesty. The 75 character length guidance is a practical ceiling, not a hard technical limit; a longer slug still works, it is just hard to share. And the transliteration of accented letters, ü to u and ß to ss, removes characters with no Latin equivalent entirely, so a name built on such characters can come out shorter or different from what you expected.

Common mistakes

  • Treating the underscore flag as an error. Nothing is broken. It is a quality issue about readability and convention, and it is your call on an existing page.
  • Rewriting live slugs without a redirect. Changing a published slug breaks the old address. Clean new slugs before publishing; redirect old ones if you change them.
  • Mixing separators in one site. Half the slugs hyphenated and half underscored looks careless. Pick hyphens and stay with them.
  • Trusting the cleaned slug without reading it. Transliteration and symbol removal can change a name more than you expect. Read the result before it goes live.
  • Letting a slug run long because it still works. Working is not the same as shareable. The 75 character ceiling exists because people have to read, type and pass the address on.

FAQs

Why are underscores a problem if my CMS accepts them? They work, but hyphens are the separator search engines document for readable URLs, and underscores are easy to miss when a link is underlined. The checker flags them as a quality issue, not an error.

What characters are allowed in a slug? Lowercase letters a to z, digits, and single hyphens between words. Everything else is either converted or removed in the cleaned version.

Can I check a full URL instead of just the slug? Yes. Paste the whole URL and the checker reads the last segment of the path, then checks only that part.

How long should a slug be? The checker uses 75 characters as a practical ceiling, not a hard technical limit. Very long URLs still work; they are just hard to share, so excess length is reported as an issue.

What happens to accented letters in a slug? Accented letters are transliterated where a standard equivalent exists, so ü becomes u and ß becomes ss. Characters with no Latin equivalent are removed in the cleaned version.

Conclusion

The separator question has a documented answer: hyphens are what search engines describe for readable URLs, and underscores, while perfectly functional, hide their word boundaries under an underline and get flagged as a quality issue for it. Run any slug through the URL Slug Checker before you publish and the cleaned, hyphenated version is ready to paste. If the document you are preparing is an invoice rather than a page, our guide on how to create an invoice for freelance work gives that the same careful treatment. For more guides in this series, see the URL and Link Tools guides.