Skip to content

Case Converter

Convert text between camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case, sentence case — all at once.

Input

What this tool does

Convert text between every common programming case — camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case, sentence case — all at once. Handy when renaming variables across languages or generating identifiers from human-readable names.

How to use it

Paste any string. The tokeniser splits on whitespace, punctuation, and camel/Pascal boundaries (including acronyms like XMLParserxml, parser), then re-emits in each case.

Input:  XMLHttpRequest
Results:
  camel    xmlHttpRequest
  pascal   XmlHttpRequest
  snake    xml_http_request
  kebab    xml-http-request
  constant XML_HTTP_REQUEST
  title    Xml Http Request
  sentence Xml http request

Limits and edge cases

  • Tokenisation is heuristic. iOS tokenises as one word (matches programmer intuition); HTTPStatus tokenises as HTTP, Status.
  • Diacritics are preserved (camelCase of “café résumé” is caféRésumé). For ASCII-only output, slugify first.
  • Each case is computed independently — toggling one doesn’t change the others.

Frequently asked questions

What's the difference between Title Case and sentence case?
Title case capitalises every word; sentence case capitalises only the first word. Both join with spaces.
What about Train-Case or COBOL-CASE?
Train-Case is kebab with each word capitalised, COBOL-CASE is upper kebab. They're less common — let us know if you need them.
Why does XMLParser become xml/parser instead of x/m/l/parser?
The tokeniser treats acronyms as a unit — uppercase followed by uppercase-lowercase starts a new word. This matches what most renaming tools do.