tools / case-converter
case-converter/
Change letter case, convert between camelCase and snake_case naming, or clean up text line by line: remove duplicates, sort, delete empty lines, add prefixes. Click “Use result as input” to keep working on the output.
Input
Result
FAQ
What is the difference between camelCase, PascalCase, snake_case and kebab-case?
They differ in how words are joined. camelCase starts lowercase and capitalises each following word, common for JavaScript and Java variables. PascalCase capitalises every word, common for class names. snake_case is all lowercase joined by underscores, common in Python and database columns. kebab-case is lowercase joined by hyphens, used in URLs and CSS class names. CONSTANT_CASE is uppercase with underscores, used for constants and environment variables.
How are words like HTTPServer and version2Update split?
HTTPServer becomes HTTP and Server, so snake_case gives http_server; XMLHttpRequest gives xml_http_request; version2Update gives version2_update, because digits stay with the word before them. The rules: spaces, underscores, hyphens, dots and other symbols separate words; a break comes before an uppercase letter that follows a lowercase letter or digit; in a run of capitals followed by a capital and a lowercase letter, the break comes before that last capital. With several lines, each line is converted on its own.
Why does Title Case capitalise “of” and “the”, and turn iPhone into Iphone?
Title Case here capitalises the first letter of every word and lowercases the rest. It does not follow APA or Chicago style, which keep small words like of, the and and in lowercase. Because the rest of each word is lowercased, words such as iPhone or NASA change too; fix them by hand afterwards if needed. A letter after an apostrophe does not start a new word, so don't becomes Don't, not Don'T.
Does it work with German ß, Greek, Russian and Chinese?
Yes, it follows the Unicode case rules. German ß becomes SS in uppercase and ss when lowered again, not ß. Greek capital Σ turns into ς at the end of a word. Russian and accented French letters work normally. Chinese and Japanese have no case and are kept as they are; in naming conversions they count as part of a word, and a break comes before an uppercase letter that follows them, so 用户Name in snake_case is 用户_name.
How does duplicate removal decide two lines match, and which one stays?
By default lines are compared character by character, so a different case or extra leading or trailing spaces make them different. The first occurrence is kept and the remaining lines stay in their original order. Untick “Case-sensitive” to treat Apple and apple as duplicates; tick “Ignore leading / trailing spaces” to treat “ a” and “a” as duplicates, still keeping the first line exactly as it was. The status line shows how many duplicates were removed.
Why does file10 come before file2 after sorting?
A → Z compares character by character, and 1 is smaller than 2, so file10 comes before file2. Choose the natural order to compare numbers in a line by value, giving file1, file2, file10. Only runs of digits count as numbers; decimal points and minus signs are compared as ordinary characters, so 1.25 sorts after 1.5. Alphabetical order follows the rules of the page language, here English. When sorting by length, lines of equal length keep their original order.
How are lines counted, and does a final line break count?
One line break at the very end does not add a line, so “a, line break, b, line break” is 2 lines; Windows line breaks (\r\n) are recognised too. Lines with only spaces or tabs count as empty and are removed by “Remove empty lines”. Results always use \n with no line break at the end. “Join into one line” skips empty lines, and in a separator you can write \t for a tab and \n for a line break.
How much text can it handle, and is anything uploaded?
Nothing is uploaded; everything happens in your browser. There is no fixed size limit and hundreds of thousands of lines work. Above 200,000 characters the result updates 0.6 seconds after you stop typing, so typing stays smooth. Shuffle reorders when you select it or click “Shuffle again”, and again when the input changes.