What is this calculator?
Converts text between nine casing conventions — UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, and CONSTANT_CASE. The programming conventions all work by splitting the text into words first, so they handle input that is already in another convention.
Use it when:
- You are renaming identifiers between a language's convention and another's.
- You need a heading, slug, or database column name in a specific style.
- You have pasted text in the wrong case and want it normalised.
Intended for: Developers, writers, and anyone normalising text or identifiers to a convention.
How is this calculated?
- The text is first split into words. The splitter recognises spaces, hyphens, and underscores, and also the internal capital letters that separate words in camelCase and PascalCase — which is why converting `myVariableName` to snake_case works without any manual editing.
- For the prose conventions, the original word boundaries are kept and only capitalisation changes: UPPERCASE and lowercase transform every character, Title Case capitalises each word, and Sentence case capitalises only the first.
- For the programming conventions, the words are rejoined with the convention's separator and capitalisation: camelCase joins with no separator and lowercases the first word, PascalCase capitalises every word, snake_case joins with underscores in lower case, kebab-case joins with hyphens, and CONSTANT_CASE joins with underscores in upper case.
Example
Converting `myVariableName` to several conventions.
- The splitter detects the internal capitals and yields the words `my`, `Variable`, `Name`.
Result: snake_case gives `my_variable_name`, kebab-case gives `my-variable-name`, CONSTANT_CASE gives `MY_VARIABLE_NAME`, and Title Case gives `My Variable Name`.
Frequently asked questions
What is the difference between Title Case and Sentence case?
Title Case capitalises every word ("The Quick Brown Fox"). Sentence case capitalises only the first word and leaves the rest as they are ("The quick brown fox").
What is the difference between camelCase and PascalCase?
Only the first word. camelCase starts lower case (`userName`), PascalCase starts upper case (`UserName`). Many languages use camelCase for variables and PascalCase for types.
Does Title Case follow editorial style rules?
No. Every word is capitalised, including short articles and prepositions. Editorial styles such as AP or Chicago leave those in lower case, so a headline may need a manual touch-up.
How are acronyms handled?
They are treated as ordinary words, so `HTTPServer` may not split the way you expect. Check identifiers containing acronyms after conversion.
Assumptions
What this calculator takes as given:
- Words are separated by spaces, hyphens, underscores, or an internal change to upper case.
- The transformation runs in your browser; the text you paste is not uploaded or stored.
Limitations
What this calculator cannot know or does not model:
- Title Case capitalises every word and does not apply editorial style rules for articles and prepositions.
- Acronyms and initialisms are not specially handled and may split unexpectedly.
- Locale-specific casing rules (for example the Turkish dotless i) are not applied.