Case Converter — 9 Formats
Convert text between 9 case formats — UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, CONSTANT_CASE, kebab-case.
Loading tool…
浏览器内运行这个工具能做什么
Change text casing across nine common formats in one paste. Useful for renaming variables across coding conventions and reformatting headings.
Nine outputs in one pass: UPPERCASE (shout), lowercase (default), Title Case (headings), Sentence case (prose), camelCase (JavaScript), PascalCase (C#/Go types), snake_case (Python, SQL), CONSTANT_CASE (env vars, constants), and kebab-case (URLs, CSS classes, file names).
Especially useful when renaming a variable across coding conventions — type the variable name once, and you get every style instantly. No more mental gymnastics translating user_id to userId, UserId, USER_ID, and user-id by hand.
这个工具可以完成什么
Have a name in user_id but need it as userId for JavaScript, UserId for a C# class, and USER_ID for an env variable? Paste once and copy each style. Faster than hand-translating between four conventions.
A heading reads differently in Title Case (article headlines), Sentence case (UI copy), and UPPERCASE (badges, alerts). Try all three from one paste and pick what fits the surface.
kebab-case output is URL-safe, CSS-safe, and HTML-id-safe. Paste a feature name or article title to get a clean slug. For pure URLs with diacritic stripping, use the dedicated Slug Generator instead.
依赖结果前需要检查什么
- Performance and maximum practical input size depend on browser memory, device speed, and the structure of the input.
- Review the generated result before replacing or publishing an original file.
如何使用
- 1
Type or paste any text into the input field.
- 2
Scan the output grid — every casing variant is generated at once.
- 3
Click to copy the variant you need.
使用场景
Have a name in user_id but need it as userId for JavaScript, UserId for a C# class, and USER_ID for an env variable? Paste once and copy each style. Faster than hand-translating between four conventions.
A heading reads differently in Title Case (article headlines), Sentence case (UI copy), and UPPERCASE (badges, alerts). Try all three from one paste and pick what fits the surface.
kebab-case output is URL-safe, CSS-safe, and HTML-id-safe. Paste a feature name or article title to get a clean slug. For pure URLs with diacritic stripping, use the dedicated Slug Generator instead.
Headings copied from CMSes often arrive in inconsistent capitalization. Paste them in and pick the canonical case (usually Sentence case for body content, Title Case for section headers).
Some projects use camelCase for variables but snake_case for DB columns and kebab-case for HTTP routes. One paste generates all three styles consistently — no manual rewriting between layers.
使用技巧
Title Case mechanically capitalizes each detected word; it does not apply editorial rules for articles or conjunctions. Sentence case lowercases the input and capitalizes its first character; it does not identify proper nouns. Review names, acronyms, and publication-specific style manually.
Both join words by capitalizing internal letters. camelCase keeps the first letter lowercase (variables, methods); PascalCase capitalizes the first letter too (classes, types, constructors). Picking the right one is a code-style convention, not a meaning difference.
URL slugs and CSS class names use kebab-case (hyphens are safe in URLs but not in identifiers). Python variables, SQL columns, and many configs use snake_case. Environment variables and global constants use CONSTANT_CASE in nearly every language.
URLs vs Urls vs urls — there is no universal acronym convention for camelCase or PascalCase. This converter applies mechanical casing rules and does not recognize domain-specific names, so review acronyms manually.
常见问题
Which case formats does this tool support?
Nine formats: UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, CONSTANT_CASE, and kebab-case. All nine are generated at once from a single input paste — no need to select one in advance.
Does it support camelCase, PascalCase, and snake_case?
Yes — all three, plus six other common casing styles. Paste your input and copy whichever output variant you need. This is the main use case for the tool: translating an identifier between coding conventions instantly.
Can I convert multiple lines or paragraphs at once?
Multiline input is accepted, but output layout depends on the selected case. Identifier-oriented variants normalize separators and can collapse line breaks, so review the copied result instead of assuming every variant preserves the input layout.
How does it handle existing capitalization in the input?
The input's capitalization is ignored — each output applies its own casing rules from scratch. So "hello_world", "HelloWorld", and "hello world" all produce the same outputs across the nine variants.
Does it handle non-English characters?
It uses JavaScript's Unicode-aware toUpperCase()/toLowerCase() — so accented letters and most scripts case-fold correctly. For specialized linguistic rules (Turkish dotted/dotless I, German ß ↔ SS), results may vary; verify before using on non-English content.
Is my input sent to a server?
Case conversion runs in your browser. Tool code does not submit entered text to a TOOLGRID processing endpoint; review your browser, extensions, and device security before using any web tool with sensitive material.
下一步常用工具
如果还需要校验、转换或复用结果,可以继续打开相近的浏览器本地工具。