TOOLGRID
首页图片工具PDF 工具视频工具音频工具
更多
开发工具Web 与 SEO分类文本工具计算器关于
菜单
首页图片工具PDF 工具视频工具音频工具开发工具Web 与 SEO分类文本工具计算器关于
TOOLGRID

需要某项具体功能时,完整工具箱始终可用。

© 2026 TOOLGRID。保留所有权利。

工具

图片工具PDF 工具视频工具音频工具

资源

分类隐私政策

站点

关于条款联系
  1. 首页
  2. Text Tools
  3. Case Converter — 9 Formats

Case Converter — 9 Formats

Convert text between 9 case formats — UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, CONSTANT_CASE, kebab-case.

Pasted text or typed values→Case Converter — 9 Formats result浏览器本地处理

Loading tool…

格式与处理方式

工具代码会在浏览器中处理所选文件和输入内容,不会将其提交给 TOOLGRID 的处理接口。

输入
Pasted text or typed values
输出
Case Converter — 9 Formats result
运行引擎
Browser APIs
浏览器内运行这个工具能做什么

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.

代表性任务

这个工具可以完成什么

Rename a variable across naming conventions

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.

Reformat a heading for different surfaces

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.

Generate URL-safe slugs and CSS class names

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.
MDN Web APIs

如何使用

  1. 1

    Type or paste any text into the input field.

  2. 2

    Scan the output grid — every casing variant is generated at once.

  3. 3

    Click to copy the variant you need.

使用场景
Rename a variable across naming conventions

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.

Reformat a heading for different surfaces

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.

Generate URL-safe slugs and CSS class names

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.

Normalize messy copy-pasted headings

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).

Build identifiers for codebases that mix conventions

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 vs Sentence case

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.

camelCase vs PascalCase

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.

kebab-case for URLs, snake_case for code, CONSTANT_CASE for env

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.

Acronyms confuse case converters

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.

继续当前流程

下一步常用工具

如果还需要校验、转换或复用结果,可以继续打开相近的浏览器本地工具。

Slug Generator文本工具 · 本地→字数统计文本工具 · 本地→Text Diff Checker — Line, Word & Character文本工具 · 本地→