Skip to content
TrySitePrice

Text case converter

Paste anything and switch style. Title Case keeps the short words lowercase unless they open the line, which is a house convention rather than a rule every style guide agrees on, so it is named rather than presented as the one right answer. The four programmer styles split on word boundaries including the ones inside camelCase, so an existing identifier converts cleanly instead of becoming one long word.

Style
Title Case keeps the short words lowercase unless they open the line — a, an, and, the, of, to and the rest. That is a house convention, not a rule every style guide shares, so check it against yours. The four programmer styles split on word boundaries, including the boundary inside camelCase, so an existing identifier converts cleanly.

Questions about case conversion

01Which words does Title Case leave lowercase?

Articles, short conjunctions and short prepositions — a, an, and, the, of, to, in, on, for, by and a few more — unless one of them is the first word. Style guides disagree about where the cut-off sits, often at four letters versus five, so check the result against whichever guide you follow rather than assuming this one matches it.

02Why did myVariableName convert correctly?

Because the splitter treats the boundary between a lowercase letter and an uppercase one as a word break, not just spaces and punctuation. Without that, converting an existing camelCase identifier to snake_case would produce one unreadable token instead of the words you wanted.

03What happens to my line breaks?

Upper, lower, title, sentence and inverted case keep your layout exactly as it is, so a column of names stays a column. The four identifier styles cannot — an identifier has no spaces by definition — so they collapse everything into a single token.

Related tools