TOOLGRIDTOOLGRID
首页图片工具PDF 工具视频工具音频工具
More
开发工具Web 与 SEO分类文本工具计算器测试方法关于
Menu
首页图片工具PDF 工具视频工具音频工具开发工具Web 与 SEO分类文本工具计算器测试方法关于
109 个工具已上线
TOOLGRIDTOOLGRID

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

© 2026 TOOLGRID. All rights reserved.

Tools

图片工具PDF 工具视频工具音频工具转换工具开发工具Web 与 SEO文本工具计算器

Resources

分类测试方法隐私政策

Company

关于条款联系
文本工具
  1. 首页
  2. Text Tools
  3. Case Converter — 9 Formats
属于 Text Tools →

Case Converter — 9 Formats

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

开始使用这个工具
浏览器本地处理不向 TOOLGRID 上传输入复制前先检查
TEXT 工作流Case Converter — 9 Formats 能力卡
输入
Pasted text or typed values
输出
Case Converter — 9 Formats result
运行引擎
Browser APIs
审核日期
2026-07-17
浏览器本地工作区在下方开始,使用浏览器本地处理。

工具代码会在浏览器中处理所选文件和输入内容,不会将其提交给 TOOLGRID 的处理接口。 TOOLGRID 只衡量工具使用情况,不记录你输入的内容。

  • 不上传工具输入至 TOOLGRID
  • 不登录
  • 复制前先检查

Loading tool…

浏览器内运行

这个工具能做什么

01

Change text casing across nine common formats in one paste. Useful for renaming variables across coding conventions and reformatting headings.

02

Paste text into the input. The tool generates all nine common casing variants simultaneously — no need to pick one in advance. Copy whichever fits the context you're writing for.

03

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

04

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.

05

All conversion happens in your browser. Tool code does not submit entered text to a TOOLGRID processing endpoint; assess browser extensions, device security, and shared sessions before using any web tool with sensitive material. Pair with our Slug Generator when you need a URL-safe version, or Word Counter for sentence-level stats on the same input.

代表性任务

这个工具适合解决什么问题

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
继续当前流程下一步常用工具

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

当前结果
产物清理文本动作复制结果
Slug Generator文本工具本地产物清理文本动作复制结果立即本地使用→字数统计文本工具本地产物清理文本动作复制结果立即本地使用→Text Diff Checker — Line, Word & Character文本工具本地产物清理文本动作复制结果立即本地使用→

如何使用

01
01Type or paste any text into the input field.
02Scan the output grid — every casing variant is generated at once.
03Click 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.

使用技巧

  1. 01
    Title Case vs Sentence case

    Title Case capitalizes "important" words (most non-articles, non-conjunctions). Sentence case capitalizes only the first letter of the sentence and proper nouns. For UI strings, Sentence case is the modern convention. For article titles, Title Case still rules in English.

  2. 02
    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.

  3. 03
    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.

  4. 04
    Acronyms confuse case converters

    URLs vs Urls vs urls — there's no consensus on how acronyms should appear in camelCase/PascalCase. The tool follows Microsoft's PascalCase guideline (capitalize first letter only of multi-letter acronyms beyond 2 chars). If your project uses a different convention, you may need to manually adjust acronyms in the output.

常见问题

02
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?

Yes. Paste any amount of text — sentences, paragraphs, lists, or code snippets. Every casing variant is regenerated as you type. Each variant treats the whole input as one logical "phrase" being recased.

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.

相关工具

03
本地

Slug Generator→立即本地使用No TOOLGRID input upload

Create a clean URL slug from a title or phrase.

清理文本复制结果

本地

字数统计→立即本地使用No TOOLGRID input upload

实时统计文本的字数、字符数、句子、段落和行数。

清理文本复制结果

本地

Text Diff Checker — Line, Word & Character→立即本地使用No TOOLGRID input upload

Compare two text blocks and see additions, deletions, and changes — switchable between line, word, and character granularity.

清理文本复制结果