How it works
- 01
Paste the text
Type it or paste it. The tool converts every line on its own.
- 02
Pick a case
Thirteen cases, each with a sample. You see the shape before you pick it.
- 03
Copy it back
Copy the result, or save it as a .txt file.
How the words are found
Eight of the thirteen cases work the same way. The tool cuts the line into words, then joins them again with spaces, capitals, underscores, dashes or dots. So the text can arrive in any shape. Spaces, dashes and camelCase all come apart the same. These eight also drop punctuation, so a comma does not survive Title Case.
A run of capitals stays one word, and the next word starts after it. That is how parseHTTPResponse becomes parse, HTTP and Response. A number stays attached to the word before it, so Line2 stays Line2.
The other five never split the line. Sentence case, lowercase, UPPERCASE, aLtErNaTiNg and iNVERT change letters and nothing else, so your commas, brackets and spacing all survive.
- Cases
- Sentence, lower, UPPER, Title, camel, Pascal, snake, kebab, CONSTANT, dot, Train, alternating and invert.
- Line by line
- A list stays a list. Blank lines stay where they are, so the shape of the text does not change.
- Live
- The result changes as you type. There is no button to press.
- Output
- Copy it, or save it as a plain .txt file.
Which case to use, and where
Use camelCase for JavaScript variables and JSON keys. Use PascalCase for class and component names. Python, Ruby and most database columns want snake_case. URLs, CSS classes and file names want kebab-case. CONSTANT_CASE marks a value that never changes.
Title Case is for headings and article titles. The short joining words in the middle, like of and and, stay lowercase. Sentence case is for body text, and it is the safest choice for a button or a menu item.