Nimble Toolbox

Convert text case

Paste text, pick a style, take the result. Handy for turning a headline shouted in caps to lowercase, for when you need to capitalize each word, or for a column name that needs to become an identifier.

How to use it#

  1. Paste your text into the first box. For a list of names to turn into identifiers, put one on each line.
  2. Choose the case you want. The result updates immediately.
  3. Copy it, or replace the input with the result to chain another conversion.

Title case is not just capitalising everything#

Real title case leaves short words lowercase in the middle of a heading (a, an, the, and, of, to, for) while capitalising everything else. "The Rise and Fall of the Empire", not "The Rise And Fall Of The Empire".

The exception is position: the first and last words are always capitalised regardless of how minor they are, which is why "What Are You Waiting For" keeps its capital F. Style guides differ in the details, and this follows the common convention. When every word should take a capital regardless, as in a list of labels, choose Capitalized Case instead.

Identifier cases, and when each one is expected#

camelCase is the default for variables in JavaScript and Java. PascalCase names classes and React components. snake_case dominates Python and SQL columns. kebab-case belongs in URLs, CSS class names, and filenames. CONSTANT_CASE marks environment variables and compile-time constants.

Getting one wrong rarely breaks anything, but it does get noticed. A Python function called getUserName reads as foreign the moment a reviewer opens the file. That is why camelCase to snake_case is a routine conversion wherever JavaScript code meets a Python API or a SQL table.

The identifier styles work line by line. Paste a column of field names copied from a spreadsheet or a schema, one per line, and each line becomes its own name, so firstName and lastName on two lines come back as first_name and last_name rather than one long first_name_last_name.

Acronyms survive the trip#

Splitting an identifier into words is where most converters fall over. Given parseHTTPResponse, a naive split produces parse, H, T, T, P, Response and the result is unusable.

This tool detects a run of capitals followed by a capitalised word and keeps the acronym whole, so parseHTTPResponse becomes parse_http_response rather than a string of single letters.

Frequently asked questions#

What is the difference between Title Case and Capitalized Case?

#

Title Case leaves minor words like "and", "of", and "the" lowercase unless they start or end the title, which is what style guides ask for in a headline. Capitalized Case capitalises every word, minor ones included, so "the lord of the rings" becomes "The Lord Of The Rings". Choose it when each word needs a capital, as in a list of names or labels.

How do I change text from all caps to normal?

#

Paste it and choose Sentence case, which lowercases everything and puts a capital back at the start of each sentence. For a heading, Title Case does the same job the way a headline is written. Names and acronyms come out lowercase in sentence case, so read the result once for those. If the capitals are the wrong way round because Caps Lock was on, as in hELLO tHERE, choose iNVERSE cASE, which flips every letter back.

What is alternating case?

#

aLtErNaTiNg cAsE switches every letter between small and capital, starting small. It is the mocking tone of a well known meme, and it turns up in puzzles and display text too. Only letters are counted, so the pattern carries on across spaces, digits, and punctuation without doubling up.

Can I change the case of a column from a spreadsheet?

#

Yes. Copy the column, paste it here, and each cell arrives as a line of its own. UPPERCASE, lowercase, and the identifier styles convert every line and keep the lines in order, so the result pastes straight back into the column. That covers the ones a spreadsheet has no formula for: Excel and Google Sheets offer UPPER, LOWER, and PROPER, but nothing for snake_case or camelCase.

How does sentence case decide where sentences start?

#

It lowercases everything, then capitalises the first letter of the text and of anything following a full stop, question mark, or exclamation mark.

Will it keep my acronyms intact?

#

For identifier styles, yes. A run of capitals is treated as one word, so parseHTTPResponse converts cleanly to parse_http_response.

Can I convert a whole list of names to snake_case or camelCase at once?

#

Yes. Put one name on each line and choose an identifier style. Every line is converted on its own and the line breaks stay where they were, so a list of 200 column names comes back as 200 identifiers in the same order. Blank lines stay blank.

Does it handle accented characters?

#

Yes. Word splitting uses Unicode letter categories, so café and naïve are treated as single words rather than split at the accent.

Is my text sent anywhere?

#

No. The conversion runs in your browser as you type and nothing is uploaded.