Text Case Converter

Runs in browser Formatting

One tool for every case transformation, including CONSTANT_CASE, dot.case, path/case and alternating case, with correct Unicode handling.

Privacy: This tool runs entirely in your browser. Your input never leaves your device.
Loading tool…

How to use Text Case Converter

  1. Paste text or identifiers into the input.
  2. Pick the target case from the dropdown.
  3. Copy the converted output, or pick another style from the comparison table.

Text Case Converter features

  • Sixteen case styles including camelCase, snake_case, kebab-case, CONSTANT_CASE, dot.case, path/case and Train-Case
  • Title Case that keeps small words lowercase and Sentence case that recognises Arabic and Hindi sentence marks
  • Per-line conversion for lists of identifiers
  • Unicode-aware upper/lower casing and acronym detection
  • Table showing the first line in every style at once
  • Converts live as you type

Text Case Converter example

Convert an identifier to several styles

Input:

XMLHttpRequest handler

Output:

camelCase: xmlHttpRequestHandler
snake_case: xml_http_request_handler
kebab-case: xml-http-request-handler
CONSTANT_CASE: XML_HTTP_REQUEST_HANDLER

Frequently asked questions about Text Case Converter

Which case styles are available?

UPPER, lower, Title, Sentence, camelCase, PascalCase, snake_case, CONSTANT_CASE, kebab-case, Train-Case, dot.case, path/case, Capital Case, no case, aLtErNaTiNg and iNVERSE — sixteen styles in total, all shown side by side in the table.

How are words detected in identifiers?

The converter splits on spaces, underscores, hyphens, dots and slashes, and also on camelCase boundaries, including acronyms: "XMLHttpRequest" becomes "XML Http Request".

Does it work with Arabic, Hindi or accented text?

Yes. Splitting and casing use Unicode-aware rules, so accented Latin letters are upper- and lower-cased correctly and scripts without case (Arabic, Devanagari) pass through unchanged.

What does Title Case do with small words?

Articles, conjunctions and short prepositions (a, an, the, of, in, and…) stay lowercase unless they are the first or last word — the usual editorial convention.

Technical notes

Identifier styles split the text with a Unicode-aware tokenizer: any run of characters outside \p{L}, \p{N} and \p{M} is a separator, so apostrophes and emoji break words while combining marks (Arabic harakat, Devanagari matras) stay attached. Inside a chunk a boundary is inserted between a lowercase letter or digit and an uppercase letter, and between an acronym and a following capitalised word (XMLHttpRequest → XML, Http, Request); v2api stays one word.

Title Case works on whitespace-delimited tokens, capitalising only the first letter and lowercasing the rest, so hyphenated compounds become State-of-the-art. Sentence case lowercases everything, then capitalises only after . ! ? ؟ । plus whitespace or a newline, so NASA is lost. Casing uses the locale-independent toUpperCase, so ß becomes SS with no Turkish i/İ rule. Per-line conversion covers identifier styles only; UPPER, lower, Title, Sentence, alternating and inverse process the whole text.