Boneyard Tools

Slug to Title Case Converter

Paste a URL slug or filename and get back a readable Title Case heading. The converter splits on hyphens, underscores and spaces, collapses repeated separators, and drops a known file extension such as .md or .html. Short words like of, the and for stay lowercase in the middle of the phrase, while the first and last words are always capitalized. It works line by line, so you can turn a whole list of slugs into headings at once.

How to convert a slug to a title

  1. Type or paste a slug or filename into the Slug or filename box, for example the-lord-of-the-rings or my_blog_post.md.
  2. Enter one slug per line if you want to convert a whole list in a single pass.
  3. Watch the Title heading update instantly as you type; hyphens and underscores become spaces and each word is capitalized.
  4. Leave the Keep small words lowercase box checked for standard title case, or uncheck it to capitalize every word.
  5. Try a preset button such as 10-tips-for-seo to see the rules in action.
  6. Use the copy button above the Title box to grab the result.

Examples

Slug with small words

the-lord-of-the-rings
The Lord of the Rings

Filename with extension

my_blog_post.md
My Blog Post

Slug that starts with a number

10-tips-for-seo
10 Tips for Seo

Frequently asked questions

Does it treat underscores and hyphens the same way?

Yes. Hyphens, underscores and spaces are all read as word breaks, so my-blog-post and my_blog_post both become My Blog Post. Repeated separators collapse into a single space, so double__underscores do not leave gaps.

How are small words handled?

With the default rules the words a, an, and, as, at, but, by, for, from, if, in, nor, of, on, or, per, the, to, via and vs stay lowercase, unless they fall first or last in the phrase. Uncheck Keep small words lowercase to capitalize every word instead.

Which file extensions get removed?

A known trailing extension after the final dot is stripped, including .md, .txt, .html, .css, .js, .ts, .json, .yml, .xml, .csv, .pdf, image types like .png and .jpg, and common source files like .py and .go. Unknown suffixes such as v1.2 are left alone.

Does it keep acronyms in uppercase?

No. Every word is normalized to an initial capital with the rest lowercased, so seo becomes Seo and css becomes Css, not SEO or CSS. If you need acronyms preserved, fix them by hand after copying.

What happens to numbers in the slug?

Numbers are kept as-is and count as words for the first and last rules. So 10-tips-for-seo becomes 10 Tips for Seo, with 10 treated as the first word and seo as the last.

Will it clean up ALL CAPS or MiXeD case?

Yes. Each word is lowercased and then given a single leading capital, so HELLO-WORLD becomes Hello World rather than staying shouted.

Can it turn a title back into a slug?

No, this tool only goes one direction, from slug to heading. To create a URL slug from a title you want the slugify tool, which lowercases text and joins words with hyphens.

Is there a limit on how much I can convert?

There is no fixed limit. Everything runs in your browser, so very long lists depend only on your device, and a handful of headings convert instantly.

Is my text uploaded anywhere?

No. The conversion happens entirely on your device in the browser. Nothing is sent to a server, logged or stored.

Learn more

Related tools