转换文本的字母大小写
在浏览器中将文本转换为大写、小写、标题格式、camelCase 或 snake_case。
交互式工具区
无需注册账号38 characters · 6 words · 1 lines
Case styles reference
| Format | Example | Use when | Language / context |
|---|---|---|---|
| UPPERCASE | HELLO WORLD | Headings, acronyms, warnings | General text |
| lowercase | hello world | Fixing Caps Lock text, URLs | General text |
| Title Case | Hello World | Headlines and titles | Editorial style guides |
| Sentence case | Hello world | Body copy and interface labels | General text |
| camelCase | helloWorld | Variables and function names | JavaScript, Java |
| PascalCase | HelloWorld | Classes and component names | React, C#, TypeScript |
| snake_case | hello_world | Variables, database fields, file names | Python (PEP 8), SQL |
| kebab-case | hello-world | URL slugs and CSS classes | Web, CSS |
| CONSTANT_CASE | HELLO_WORLD | Constants and environment variables | Most languages, .env files |
| dot.case | hello.world | Namespaced keys and config paths | Java packages, config files |
| aLtErNaTiNg | hElLo WoRlD | Playful social posts | Social media |
| iNVERSE cASE | Hello World → hELLO wORLD | Undoing swapped-case typing | General text |
| Random case | hELLo WoRLd (varies) | Playful or obfuscated text | Social media |
Case conversion FAQs
Which words stay lowercase in Title Case? AP and Chicago style guides keep short articles and prepositions (a, an, the, of, in) lowercase unless they start the title. This tool capitalizes every word so the result is predictable; lower individual words afterwards if your style guide requires it.
How do I fix text typed with Caps Lock on? Use lowercase to reset everything, Sentence case for normal prose, or iNVERSE cASE to swap every letter's case character by character.
Does my text leave my device? No. Conversion runs entirely in your browser; nothing is uploaded or stored.
Are accented letters preserved? Yes. Word splitting is Unicode-aware, so letters such as é, ü, and ñ stay inside their words in every mode instead of being dropped or treated as separators.
在浏览器中将文本转换为大写、小写、标题格式、camelCase 或 snake_case。
在浏览器中将文本转换为大写、小写、标题格式、camelCase 或 snake_case。
在浏览器中将文本转换为大写、小写、标题格式、camelCase 或 snake_case。
结果可能因浏览器、网络、输入内容和外部服务而异。本工具仅供参考,不能替代专业诊断或建议。
- 字母大小写转换工具是什么?
- 在浏览器中将文本转换为大写、小写、标题格式、camelCase 或 snake_case。