How to Convert Text Case: Title Case, camelCase, snake_case and More
2026-08-10
A heading arrives in ALL CAPS. A spreadsheet column needs to become database field names. A list of labels has to match a naming convention someone set three years ago. Retyping is the obvious solution and the wrong one.
The cases for writing
- Sentence case — capitalise the first word only. The modern default for headings in most style guides.
- Title Case — capitalise each word. Traditional for headlines and still standard in many CMS fields.
- UPPERCASE — for short labels and buttons. Avoid for body text; it is measurably slower to read.
- lowercase — for URLs, tags and deliberately informal branding.
The cases for code
- camelCase — JavaScript variables and JSON keys. First word lowercase, the rest capitalised.
- PascalCase — class names, React components, type names.
- snake_case — Python variables, SQL columns, many APIs.
- kebab-case — URLs, CSS classes, file names. Note that search engines read hyphens as word separators and underscores as joiners.
- CONSTANT_CASE — environment variables and constants.
Step by step
- Open the Case Converter.
- Paste your text — a word, a heading or a whole document.
- Pick the target case. The result appears immediately.
- Copy it, or download it as a text file.
Converting between code cases
The useful trick is that word boundaries are detected rather than assumed. Capital-letter humps, hyphens, underscores and spaces are all treated as separators, so myXMLFile, my-xml-file and My XML File all convert to the same result in any target case. You never need an intermediate step.