Case converter

Case converter: uppercase, lowercase and ten more formats

Paste your text and pick a format: it converts instantly and there is an undo button. With Title Case done properly in each language, cleanup for whatever arrives pasted from Word, and a URL slug generator.

Zero uploads · all in your browser

Your text never leaves your device and is not stored: reload and nothing remains.

Why it matters that none of this is uploaded

A case converter looks harmless until you notice what people paste into one: the draft of a press release that has not gone out, the field names of an internal database, unpublished article titles, contract text. None of that needs to travel through anyone's server to be put in capitals. Here there is nowhere to send it: it is converted in your tab and not stored.

How it works, in 3 steps

  1. Paste the text

    As it is, with its extra spaces and odd line breaks. Below you get the character, word and line counts.

  2. Pick a format, or clean it

    The twelve formats apply on click. The cleanup boxes are ticked and applied together, with a preview of how much will go.

  3. Copy, or step back

    One button copies the whole text and another undoes the last step. The slugs below have their own copy button.

What people use it for

Title Case is not the same in every language

This is the thing nearly every converter gets wrong. English titles capitalise almost every word — The Lord of the Rings — and that habit has leaked into online converters, which apply it to any language whatsoever. Applied to Spanish it produces titles that are simply incorrect.

The Spanish rule is straightforward: a title capitalises the first word and proper nouns, and nothing else. It is Cien años de soledad, never Cien Años De Soledad. So this page defaults to the rule of the language version you are on, with a switch at the top for when you are formatting a title in the other one — which happens more often than you would think.

The English rule has its own detail, too. It is not enough to lowercase the articles. The convention people expect — the news style one — lowercases articles, coordinating conjunctions and prepositions of fewer than four letters, but capitalises those of four or more. That is why it is Gone With the Wind rather than Gone with the Wind. The first and last words always take a capital whatever they are: What to Look For. Acronyms are left alone, so the NASA report becomes The NASA Report and not The Nasa Report.

For the Spanish rule, proper nouns cannot be guessed without understanding the text, so what happens instead is that the clue you left is respected: a word that already had a capital and is not the first keeps it. The one hopeless case is a text arriving entirely in capitals, where there is no clue at all — and when that happens, you are told.

The programming formats, and why they strip accents

The six formats in the second row exist because every ecosystem names things its own way:

  • camelCase — variables and functions in JavaScript, Java and C#.
  • PascalCase — classes and components; camelCase with the first letter up too.
  • snake_case — Python, Ruby and almost every database column name.
  • SCREAMING_SNAKE_CASE — constants and environment variables.
  • kebab-case — URLs, CSS class names and filenames.
  • dot.case — configuration keys and namespaces.

All six transliterate accents and tell you what changed. It is not sloppiness: an identifier with an accent looks like it works in JavaScript or Python, but breaks the moment that name travels — database columns, JSON keys passing through older systems, filenames moving between Windows and Linux, anything that ends up in a URL. So número de teléfono comes out as numeroDeTelefono, and you are told. The ordinary text formats leave accents intact.

The word splitting is careful too: it recognises words that were already joined. XMLHttpRequest is read as three words and gives xml_http_request, not xmlhttprequest. And since the code formats apply line by line, you can paste a whole list of labels and get the whole list of identifiers back at once.

The cleanup panel is what most people actually came for

Plenty of people arrive at a case converter with a problem that has nothing to do with case: they pasted something from Word or a PDF and it came out broken. That is why the cleanup panel lives on this page rather than hidden in another tool.

The commonest case is the PDF one: copying pastes every visual line as its own line, so a six-line paragraph arrives in six pieces. Turning stray line breaks into paragraphs joins the ones inside a paragraph and keeps a break only where there was a blank line. That is different from removing all line breaks, which welds the document into one block — which is why the two cannot both be ticked.

The rest goes after the invisible: double spaces, trailing spaces nobody sees but that break an import, leftover blank lines, curly quotes and em dashes that sneak in from Word. Before applying anything you see how many characters are about to go, and you can always undo.

Slugs, one per line

A slug is the readable part of an address: in utiliobox.com/en/case-converter, the slug is case-converter. It comes from the title by stripping accents, lowercasing, and putting hyphens where there were no letters or digits. It matters because a URL with accents or spaces escapes itself and ends up full of codes like %C3%B1: it breaks when pasted into an email and helps nobody.

Here the slug is generated as you type, with one line per slug: paste twenty headlines and get twenty addresses. And if what you want is to count words or estimate reading time for that same text, that is what the word counter does, also without uploading anything.

And when the cleanup you need does not fit in a checkbox — keeping only the lines that match a pattern, or reordering fields — that is where the regex tester comes in, replace tab included.

Frequently asked questions

Why does Title Case leave some words in lowercase?

Because that is the convention. The rule people expect — the news style one — lowercases articles, coordinating conjunctions and prepositions of fewer than four letters, while capitalising prepositions of four or more.

That is why it is Gone With the Wind rather than Gone with the Wind. The first and last words always take a capital whatever they are, which is why What to Look For ends in a capital F.

What is the Spanish Title Case rule, and why is it here?

In Spanish a title capitalises only the first word and proper nouns: Cien años de soledad, not Cien Años De Soledad. The English habit has leaked into most online converters, which apply it to any language and produce Spanish titles that are wrong.

This page defaults to the rule of the language version you are on and lets you switch, because plenty of people work in both languages in the same afternoon.

Why do the programming formats strip my accents?

On purpose, and it is the right thing. An identifier with an accent may look like it works in JavaScript or Python, but it breaks as soon as that name travels: database columns, JSON keys passing through older systems, filenames between Windows and Linux, anything ending up in a URL.

So número de teléfono becomes numeroDeTelefono, and the tool tells you which characters changed rather than doing it quietly. The ordinary text formats leave accents alone.

What is each programming format for?

camelCase for variables and functions in JavaScript, Java and C#. PascalCase for classes and components. snake_case in Python, Ruby and almost every database column name.

SCREAMING_SNAKE_CASE for constants and environment variables. kebab-case in URLs, CSS classes and filenames. And dot.case in configuration keys and namespaces. They apply line by line, so a whole list converts at once.

What does "turn stray line breaks into paragraphs" do?

It fixes the PDF paste. Copying pastes every visual line as its own line, so a six-line paragraph arrives in six pieces.

This option joins the breaks inside a paragraph and keeps a break only where there was a blank line. It is different from removing all line breaks, which welds the document into one block — which is why the two cannot both be ticked.

What is a slug and why would I need one?

It is the readable part of a web address, the bit after the domain. It is built by stripping accents, lowercasing and putting hyphens where there are no letters or digits.

It matters because a URL with accents or spaces gets escaped automatically and fills up with codes like %C3%B1: it looks bad, breaks when pasted into an email and helps nobody. Here you can paste several titles, one per line, and get them all.

Is my text uploaded to a server?

No. Everything is converted inside your browser and the text never leaves the tab. No accounts, no database, and nothing is stored: reload and nothing remains, on purpose. Load the page, disconnect from the internet and check.

Can I get my text back if I pick the wrong format?

Yes: the undo button remembers the last sixty steps. Every conversion and every cleanup counts as one, so you can try formats freely and step back.

What you cannot recover is closing or reloading the page, because nothing is saved anywhere. That is the same reason your text is safe.

Related tools