About This Tool

What is 大小写转换工具?

A tool for converting text between various naming conventions including camelCase, PascalCase, snake_case, SCREAMING_SNAKE_CASE, and kebab-case — all at once. Essential for programming when matching variable, function, and file naming conventions.

How to Use

  1. Enter text in the input field.
  2. All case conversion results are displayed simultaneously.
  3. Copy the desired result for use.

Key Features

  • All case conversions at once: camelCase, PascalCase, snake_case, and more
  • Automatic recognition of various delimiters (spaces, hyphens, underscores)
  • Real-time conversion
  • Optimized for programming naming conventions

Tips

  • JavaScript uses camelCase for variables and PascalCase for class names.
  • Python uses snake_case for variables/functions and SCREAMING_SNAKE_CASE for constants.
  • CSS class names typically use kebab-case.

大小写转换工具

一键将文本转换为 camelCase、PascalCase、snake_case 等格式

camelCase
PascalCase
snake_case
CONSTANT_CASE
kebab-case
dot.case
path/case
UPPERCASE
lowercase
Title Case
Sentence case
aLtErNaTiNg CaSe

Frequently Asked Questions

项目应该使用哪种命名规范?

遵循你的语言惯例:JavaScript/TypeScript变量用camelCase,类/组件用PascalCase。Python变量/函数用snake_case,类用PascalCase。CSS用kebab-case。Go用camelCase(私有)和PascalCase(导出)。一致性比具体选择更重要。

转换器如何检测输入中的单词边界?

工具识别多种分隔符:空格、连字符(-)、下划线(_)和camelCase转换(小写后接大写)。因此'myVariableName'、'my-variable-name'、'my_variable_name'和'my variable name'对每种大小写类型产生相同输出。

什么是SCREAMING_SNAKE_CASE?何时使用?

SCREAMING_SNAKE_CASE(也叫UPPER_SNAKE_CASE或CONSTANT_CASE)使用全大写字母,单词间用下划线:MAX_RETRY_COUNT、API_BASE_URL。这是大多数编程语言中常量的通用约定。


Related Tools