RevealTheme logo

大小写转换工具

在大写、小写、标题式大写、camelCase、snake_case、kebab-case等格式之间转换文本。

如何使用本工具

  1. 1

    Type or paste your text — words separated by spaces work best.

  2. 2

    Every common case is generated at once: UPPER, lower, Title, Sentence, camelCase, PascalCase, snake_case, kebab-case, and CONSTANT_CASE.

  3. 3

    Click Copy next to whichever variant you need.

什么是大小写转换工具?

每种场景都要求不同的大小写格式。常量通常使用CONSTANT_CASE,JavaScript变量使用camelCase,文件名使用kebab-case或snake_case,标题则使用标题式大写。手动改写来转换格式容易出错。本工具会将你的输入一次性转换为所有常见格式,方便你选用合适的那一种。

常见使用场景

  • Generate a URL slug or CSS class (kebab-case) from a human-readable title.

  • Turn a label like 'maximum retry count' into a CONSTANT_CASE environment-variable name.

  • Produce a database column name (snake_case) from a form-field label.

  • Create a camelCase variable name or a PascalCase component name from a plain description.

  • Fix an all-caps paste back to Sentence case, or set a heading in Title Case.

  • Standardize a list of labels to one convention before pasting them into code.

常见问题

为什么有这么多种格式?
每种编程语言和风格指南都偏好不同的约定。Python钟爱snake_case;JavaScript钟爱camelCase;常量则使用大写。

相关工具