Text Case Converter

Nine conventions, converted instantly from one input.

—

The conventions

Why splitting words is the hard part

Conversion is easy once the words are identified; identifying them is the tricky bit. Input arrives in mixed forms — already snake_case, already camelCase, containing acronyms, digits and punctuation. This tool normalises by first splitting on underscores, hyphens and spaces, then splitting camelCase boundaries, and finally handling runs of capitals as acronyms. That is why APIResponseHandler becomes api-response-handler rather than a-p-i-response-handler. No automatic splitter is perfect: iOSDevice and HTTP2Server are genuinely ambiguous, and if the output matters, check it.

Acronyms and the capitalisation trap

Uppercasing an acronym is not the same as title-casing a word. parseJSONResponse in camelCase should stay ParseJSONResponse in PascalCase, not become ParseJsonResponse, because JSON is a proper noun with fixed capitalisation. Most naive converters get this wrong, which is why hand-checking acronym-heavy identifiers is still worthwhile. Similarly, a naive title-caser will turn "iPhone" into "IPhone" and "eBay" into "EBay" — both wrong, and both obvious to a reader.

Title case rules differ by style guide

AP style capitalises words of four or more letters and lowercases short prepositions and conjunctions. Chicago capitalises all major words including both parts of hyphenated compounds. APA has its own rules for words of four or more letters. Wikipedia sentence-cases article titles. There is no single correct answer, so pick the guide your publication uses and apply it consistently. The title-case output here follows a common middle ground; for formal publication, check against your style guide.

Locale matters more than people expect

Case conversion is language-dependent. Turkish has two distinct lowercase i characters and two distinct uppercase I characters, so uppercasing "i" gives "İ" in Turkish but "I" in English — a difference that has caused real bugs in software that assumed English rules. German ß uppercases to "SS", which changes length. Greek has complex rules for accented capitals. If your text is not English, verify the output carefully rather than trusting a converter that applies English rules.

For renaming many identifiers at once, convert them one at a time or clean the list first using the line cleaner, and check any pattern-based transformation with the regex tester.