Skip to content
DoItJag

Slug to Text

Turn a slug such as how-to-make-tea, a name such as user_first_name or myFirstPost, or a full web address back into readable text with the capitalisation you choose. Paste a whole list to convert many at once.

Hyphens, underscores, dots and plus signs become spaces, and %20-style codes are decoded. A slug cannot remember the punctuation or apostrophes it lost, so check names and capital letters.

About Slug to Text

A slug is the compact, hyphenated part of a web address that names a page, such as best-hill-stations-in-india. Developers also name fields and files in similar compressed styles: user_first_name, invoiceTotalAmount, annual-report-2025.pdf. This page reverses that process and gives you ordinary words with spaces and sensible capital letters.

It is useful when you export a list of page addresses from an analytics report or sitemap and need human-readable titles, when you turn database column names into spreadsheet headings, or when you tidy file names into captions.

What it does to each line

  1. If the line is a full address and the option is on, it keeps only the final path segment, after removing the query string and any # anchor.
  2. Percent codes are decoded, so %20 becomes a space and %E2%82%B9 becomes ₹.
  3. Common endings such as .html, .php, .md and .pdf are removed if you ask.
  4. camelCase and PascalCase words are split apart.
  5. Hyphens, underscores, dots, tildes and plus signs become single spaces.
  6. Capitalisation is applied: Sentence case, Title Case, lower case, UPPER CASE or unchanged.

Blank lines stay blank, so each output line sits beside its original.

Worked example

Input, one per line:

https://example.com/blog/how-to-file-itr-online/?utm_source=mail
user_first_name
parseHTTPResponse

With Title Case, the output is How to File Itr Online, User First Name and Parse Http Response.

Title Case lowers everything first and then capitalises, so abbreviations such as ITR and HTTP lose their capitals, and short words like “to” stay small. Choose Keep as typed to get parse HTTP Response instead, then fix the rest by hand or in Case Converter.

Limits

A slug throws information away, and nothing can recover it reliably. Apostrophes, commas, question marks and the original capitals are gone, so dont-panic comes back as “Dont panic”. Treat the output as a strong first draft and read it before publishing. To go the other way and create a slug from a title, use Text to Slug.

How to use Slug to Text

  1. Paste slugs, file names or web addresses, one per line.
  2. Choose the capitalisation and whether to use only the last part of each address.
  3. Copy the readable text or download it.

Privacy: how it works

Everything happens in your browser. Your text is not sent to any server.

Frequently asked questions

Can I paste a full web address?

Yes. With “Use the last part of a web address” ticked, the domain, folders, query string and #anchor are dropped, and endings such as .html are removed.

What happens to codes like %20 or %C3%A9?

They are decoded to the characters they stand for, so %20 becomes a space and %C3%A9 becomes é.

Can it bring back apostrophes and punctuation?

No. A slug no longer contains them, so “dont-panic” becomes “Dont panic”. Check names and capital letters before you use the text.