CASE CONVERTER
Title Caseeight formats, one click.
Switch text between UPPER, lower, Title Case, Sentence case, camelCase, snake_case, kebab-case and swapped case. Runs locally.
How do I use the case converter?
Type or paste text above, then click any format button to get the result instantly. camel, snake and kebab help rename variables; Title and Sentence fit headings.
FAQ
When should I use camelCase, snake_case or kebab-case?
Follow the language convention: JavaScript and TypeScript variables use camelCase (userName); Python variables and functions use snake_case (user_name); URL paths, HTTP headers and custom CSS properties use kebab-case (user-name). The conversion treats every word uniformly, so user_name or user-name both convert correctly to userName.
What is the difference between Title Case and Sentence case?
Title Case capitalises the first letter of every significant word — used for book and film titles. Sentence case capitalises only the very first word of the whole string, which is what you want for ordinary sentence casing. For all-caps or all-lowercase use the UPPER CASE / lower case buttons.
Will the conversion break my existing formatting?
Line breaks, spaces and punctuation are all preserved — only letter case changes. One caveat: converting an already-camelCase word to snake_case splits on the case boundaries, so userID becomes user_i_d rather than user_id. Acronyms like that need a manual fix afterwards.
示例与注意事项Example & notes
一个例子A worked example
把一段英文标题转成「每个单词首字母大写」:页面会让 a、of、the 这类小词保持小写,符合英文标题规范。Turn a headline into title case: short words like a, of and the stay lowercase, matching English style guides.
注意事项Things to watch
- 英文标题里介词、连词、冠词通常小写(除非位于开头或结尾)。In titles, prepositions, conjunctions and articles stay lowercase unless they open or close the phrase.
- 缩写适合全大写,但整句全大写可读性差,正式文本少用。All caps suit acronyms, but a whole sentence in caps hurts readability.
- 中文不受影响,混排文本只会改动英文字母。Chinese characters are untouched — only Latin letters change.
相关问答More Q&A
有哪几种转换格式?Which formats are available?
全大写、全小写、每词首字母大写、句首大写,以及适合变量名的驼峰命名。Upper case, lower case, title case, sentence case, plus camel and snake case for code identifiers.
会修改标点吗?Does it change punctuation?
不会,标点与空格原样保留,只转换字母的大小写。No — punctuation and spacing are preserved; only letter case changes.