Writing tool · free · runs in your browser

Case Converter

Paste text, pick a transformation and copy the result. It handles letter case for headlines and sentences, naming styles for code, and line clean-up such as trimming spaces, removing duplicates and sorting.

What this case converter does

The case converter rewrites text in a different letter case or naming style, and tidies lists line by line. It saves retyping a heading that was written in capitals, turns a list of field names into variable names, and cleans up data copied from spreadsheets, emails or PDFs. There are fourteen transformations in three groups:

How to use it

  1. Paste your text into the box.
  2. Choose a transformation. The result appears below and changes as soon as you pick another option.
  3. Press Copy to copy the result, or select it by hand.

The rules behind each option

Title Case (headline style)

Every word is capitalized except short articles, conjunctions and prepositions: a, an, and, as, at, but, by, for, if, in, nor, of, off, on, or, per, so, the, to, up, via, vs and yet. These stay lowercase unless they are the first or last word, or follow a colon. This matches the common rule in English headline styles; individual style guides differ on longer prepositions such as "with" or "about", which this tool capitalizes.

Sentence case

The text is lowercased, then the first letter of the text, of each line and of each new sentence is capitalized. A new sentence starts after a full stop, question mark or exclamation mark followed by a space. The pronoun "i" on its own becomes "I".

Code naming styles

Each line is treated as one name. Words are split at spaces, punctuation and existing case changes, and apostrophes inside words are dropped, so "don't" becomes "dont" rather than two words. Acronyms are recognized inside camelCase input: "XMLHttpRequest" splits into xml, http and request.

Style"user ID number" becomesTypical use
camelCaseuserIdNumberJavaScript and Java variables
PascalCaseUserIdNumberClass and component names
snake_caseuser_id_numberPython, SQL columns
kebab-caseuser-id-numberURLs, CSS classes, file names

Line tools

Trim and collapse removes spaces and tabs at both ends of each line and turns runs of spaces inside a line into one space. Remove duplicate lines keeps the first copy of each line and is exact, so case and spacing matter. Sorting uses natural order and ignores case, so "item 2" comes before "item 10".

Worked examples

Fixing a shouted headline

"THE LORD OF THE RINGS: THE RETURN OF THE KING" with Title Case gives "The Lord of the Rings: The Return of the King". The second "The" stays capitalized because it follows a colon.

Column names to variables

Three lines, "First Name", "Date of Birth" and "Postal Code", become firstName, dateOfBirth and postalCode in camelCase, or first_name, date_of_birth and postal_code in snake_case.

Cleaning an email list

A pasted list of 120 lines with blank lines and repeats can be cleaned in three passes: Trim and collapse spaces, Remove blank lines, then Remove duplicate lines. Finish with Sort lines A to Z.

Tips and common mistakes

Limits and privacy

The tool accepts up to 10 MB of text; the output box shows the first 2 million characters. It changes characters and whitespace only and does not check grammar or spelling. Everything runs in your browser and nothing you paste is sent or stored.

Frequently asked questions

What is the difference between Capitalize Each Word and Title Case?

Capitalize Each Word puts a capital on every word. Title Case (headline style) keeps short words such as a, and, of, the and to in lowercase unless they are the first or last word, as in The Lord of the Rings.

Why did NASA become Nasa?

The case options first lowercase the text and then add capitals, so acronyms lose their capitals. Fix acronyms and brand names such as iPhone by hand after converting.

How does Sentence case work?

It lowercases everything, then capitalizes the first letter of the text, the first letter after a full stop, question mark or exclamation mark followed by a space, and the first letter of each line. A lone i becomes I.

What do camelCase, PascalCase, snake_case and kebab-case produce?

For the line user ID number they give userIdNumber, UserIdNumber, user_id_number and user-id-number. Each line is treated as one name, and existing camelCase is split at capital letters first.

Is Remove duplicate lines case-sensitive?

Yes. Apple and apple are different lines, and so are lines that differ only by a trailing space. Run Trim and collapse spaces first if spacing is inconsistent.

How does sorting handle numbers?

Sorting uses natural order, so item 2 comes before item 10, and it ignores letter case and accents when comparing.

Is my text sent anywhere?

No. Every transformation runs in your browser and the page makes no network requests while you use it.