/tools/case-converter

Case Converter

Eight conversions in one place — including the four naming conventions programmers switch between constantly.

Case ConverterRuns in your browser
Convert to

How to use the Case Converter

  1. Paste or type your text in the input box.
  2. Click the case you want. The result appears underneath.
  3. Copy it, or press Replace input with result to chain another conversion.

The programming cases and where each is used

CaseExampleConventional home
camelCaseuserAccountIdJavaScript and Java variables, JSON keys
PascalCaseUserAccountIdClass and component names, C# public members
snake_caseuser_account_idPython, Ruby, SQL columns, database tables
kebab-caseuser-account-idURLs, CSS classes, HTML attributes, filenames
CONSTANT_CASEUSER_ACCOUNT_IDConstants and environment variables

The converter splits on existing boundaries before rebuilding, so it recognises the case your text is already in. Feeding it userAccountId and asking for snake_case correctly gives user_account_id, not useraccountid.

Title case is not just capitalising every word

Proper title case leaves short function words lowercase — articles, coordinating conjunctions and short prepositions — unless they are the first or last word. "The Lord of the Rings", not "The Lord Of The Rings".

Style guides disagree on the details. Chicago lowercases all prepositions regardless of length; AP capitalises those of four letters or more. This tool follows the common convention of lowercasing a standard list of short words, which matches most editorial house styles closely enough for headlines and titles. Proper nouns are the unavoidable gap — no automatic converter knows that "van Gogh" keeps its lowercase "van".

Sentence case and accented text

Sentence case lowercases everything, then capitalises after each full stop, question mark, exclamation mark and line break. The standalone pronoun "I" is restored, since that is the one word that would otherwise look obviously wrong in English.

All conversions use Unicode-aware casing, so accented characters, Cyrillic and Greek convert correctly. A caveat for Turkish: the dotless ı and dotted İ have locale-specific rules that browsers apply only when told the locale, so Turkish text may need manual correction.

Frequently asked questions

Will it preserve my line breaks?

Yes for the text cases — upper, lower, title and sentence all keep your paragraph structure. The programming cases deliberately collapse everything into one identifier, since that is what an identifier is.

Why did my acronym get mangled in camelCase?

Runs of capitals are treated as word boundaries, so "parseHTMLDocument" becomes "parse_html_document" in snake_case. That matches most style guides, but check identifiers where an acronym should stay intact.

Can I convert a whole list at once?

Yes for the text cases — paste the list and each line is converted independently. For programming cases, convert one identifier at a time, since they join everything into a single token.

Does it handle non-English text?

Yes. Casing is Unicode-aware, so French, German, Spanish, Greek and Cyrillic all convert correctly. Turkish dotted and dotless i are the known exception.

Related tools