Convert text between UPPERCASE, lowercase, Title Case and Sentence case, or into the programmer styles — camelCase, PascalCase, snake_case, kebab-case and CONSTANT_CASE. You can also remove extra spaces, join lines, sort lines and remove duplicates. The result follows your edits, and nothing leaves your device.
How it works
- Type or paste text, or drop a .txt or .md file.
- Pick a conversion. The result appears below and updates as you edit.
- Copy the result, download it as a .txt file, or use it as the input for another conversion.
Questions
- Is my text uploaded or saved?
- No. Counting and converting run in this page on your device; you can check the Network tab in your browser’s DevTools and see no requests as you type. A copy of the draft is kept in this tab’s session storage so a reload does not lose it, and it is cleared when you close the tab or press Start over.
- What rules does Title Case follow?
- The first and last words, and any word after a colon or dash, are capitalised. Articles (a, an, the), short conjunctions (and, but, or, nor, for) and short prepositions (at, by, in, of, on, to, via) stay lower-case in between. Acronyms like NASA and names like iPhone are kept as typed unless the whole text is in capitals.
- How does it split words for camelCase and snake_case?
- At spaces and punctuation, and inside existing identifiers where the case changes, so "XMLHttpRequest" becomes xml_http_request and "myVariableName" becomes my-variable-name. Each line is converted separately, so a pasted list of names stays a list.
- Does it work with accents and other alphabets?
- Yes, for any script with upper and lower case: accented Latin, Greek, Cyrillic, Armenian. Scripts without case, such as Chinese, Arabic or Hindi, pass through unchanged, and the line tools work on any text.