iToolsPro

大小写转换

大写、小写、首字母大写、驼峰命名、蛇形命名、烤串命名等 13 种转换,一键复制

输入文本
转换结果
UPPER · lower · Camel · snake

一种输入,13 种大小写

一次输入,同时得到大写、小写、驼峰、蛇形、烤串等 13 种转换结果,点击即复制。

100% 本地处理 · 纯前端计算

核心特性

13 种转换
大写、小写、标题、驼峰、帕斯卡、蛇形、烤串、点分、常量、交换等。
智能分词
自动识别空格、下划线、连字符与驼峰边界,转换结果规范统一。
一键复制
点击任意转换结果即可复制到剪贴板,逐个使用。

适用场景

🧑‍💻 代码命名 🌐 API 字段名 🗄 数据库列名 📝 文案排版

大小写转换使用指南Case Converter Guide

了解 12 种大小写转换方式、分词规则与常见问题。The 12 case conversions, word-splitting rules, and answers to common questions.

支持的转换Supported Conversions

工具一次输出 12 种转换结果:大写、小写、首字母大写、标题大小写、驼峰命名(camelCase)、帕斯卡命名(PascalCase)、蛇形命名(snake_case)、大写蛇形(SCREAMING_SNAKE_CASE)、烤串命名(kebab-case)、点分命名(dot.case)、常量命名(CONSTANT-CASE)与大小写交换。

The tool outputs 12 conversions at once: UPPERCASE, lowercase, sentence case, Title Case, camelCase, PascalCase, snake_case, SCREAMING_SNAKE_CASE, kebab-case, dot.case, CONSTANT-CASE and swap case.

分词规则Word Splitting

自动识别空格、下划线、连字符、点号以及驼峰边界(如 fooBar → foo Bar、HTTPServer → HTTP Server),保证命名转换结果规范。

Spaces, underscores, hyphens, dots and camel boundaries are detected automatically (e.g. fooBar → foo Bar, HTTPServer → HTTP Server).

使用步骤How to Use

  1. 在左侧粘贴或输入文本。Paste or type text on the left.
  2. 右侧实时显示 12 种转换结果。See all 12 conversions update live on the right.
  3. 点击任意结果复制。Click any result to copy it.

常见问题FAQ

Q1. 支持中文吗?Q1. Does it support Chinese?

支持,中文字符原样保留,仅对英文单词进行大小写转换。Yes - Chinese characters are kept as-is while English words are converted.

Q2. 驼峰和蛇形如何互转?Q2. How do camelCase and snake_case convert?

工具会自动识别驼峰边界,把 fooBar 拆为 foo bar,再按下划线/连字符规则重排。Camel boundaries are split automatically, so fooBar becomes foo bar and is rebuilt with the target separator.

Q3. 内容会上传吗?Q3. Is my text uploaded?

不会,全部在浏览器本地完成。No - everything runs locally in your browser.