Case converter
Change text between sentence case, UPPER CASE, Title Case, camelCase, snake_case and more.
Input
Output
What it does
Paste text, pick a case, and the converted text appears as you type. There are ten cases:
- Sentence case capitalises the first letter of each sentence and line, and lowercases the rest.
- lower case and UPPER CASE change every letter.
- Title Case capitalises each word but leaves small words such as of, and and the lowercase, unless they start or end a line.
- camelCase, PascalCase, snake_case, CONSTANT_CASE and kebab-case turn each line into a single name, the way code and file names are written.
- aLtErNaTiNg switches between lower and upper case on every letter.
How to use it
- Paste or type your text in the input pane. The page opens with a sample so you can see what each case does.
- Pick a case. The output updates straight away, and your choice is remembered for next time.
- Press Copy to put the result on your clipboard, or Download to save it as a text file.
To convert a list of names, such as spreadsheet headings into database column names, put one name on each line and choose snake_case or camelCase. Each line is converted on its own, and blank lines stay blank.
Questions
How does Title Case decide which words to capitalise?
Every word is capitalised except short joining words such as a, an, the, and, of, in and to. The first and last word of each line are always capitalised, so "of mice and men" becomes "Of Mice and Men".
Why do camelCase, snake_case and the other programming cases work line by line?
Because they are used for names: column headings, variable names, file names. Each line becomes one name, so a pasted column of headings converts in one go. Punctuation is dropped and existing capitals mark word breaks, so "firstName", "First Name" and "first-name" all become "first_name".
What happens to acronyms like JSON or HTTP?
A run of capitals is treated as one word. "parseHTTPResponse" splits into parse, HTTP and Response, which gives "parse_http_response" in snake_case and "ParseHttpResponse" in PascalCase.
Does it work with accented letters and other alphabets?
Yes. Any letter with an upper and a lower case form is converted, including accented Latin letters, Greek and Cyrillic. Characters without case, such as Chinese text, digits and emoji, are left as they are.
Is my text sent anywhere?
No. The conversion runs in your browser. Your text is not uploaded, stored or logged, and it is gone when you close the tab. Only your choice of case is remembered, on your own device.