大小写转换器——UPPERCASE、lowercase、Title、camelCase、snake_case
在 12 种大小写格式之间转换文本:UPPERCASE、lowercase、Title Case、Sentence case、camelCase、PascalCase、snake_case、kebab-case、CONSTANT_CASE、dot.case、交替大小写和大小写反转。
在此粘贴你的文本……
大小写转换已完成?不妨试试这些
与大小写转换搭配使用的精选工具。继续编辑,不丢失你的文件。
字数统计
统计字数、字符数、句子数、段落数和行数,并估算阅读和朗读时长。在你的浏览器中运行。
立即试用Lorem Ipsum 生成器
生成占位的段落、句子或单词。可选以经典的「Lorem ipsum…」开头。
立即试用Markdown 编辑器
在实时 HTML 预览下编写 Markdown。支持标题、列表、表格、代码块、引用。可导出为 HTML 或 Markdown。
立即试用文本差异比较
逐行比较两段文本。支持分栏或合并视图,可选择忽略空白和忽略大小写。
立即试用Base64 编码器 / 解码器
将任意文本或文件编码为 Base64(含 URL 安全变体),或将 Base64 解码还原为文本。UTF-8 安全。
立即试用JSON 美化
在浏览器中格式化、校验和压缩 JSON。可使用 2 / 4 / 8 空格缩进美化,或压缩为单行,并支持复制和下载。
立即试用Frequently Asked Questions
该转换工具支持十二种样式:UPPERCASE、lowercase、Title Case、Sentence case、camelCase、PascalCase、snake_case、kebab-case、CONSTANT_CASE、dot.case、aLtErNaTiNg case 和 iNVERSE case——涵盖写作、文档和代码中常用的所有样式。
featurescamelCase(驼峰命名)首个单词全部小写,其后每个单词首字母大写(myVariableName)。PascalCase(帕斯卡命名)每个单词(含第一个)首字母均大写(MyVariableName)。snake_case(蛇形命名)全部小写,单词之间用下划线连接(my_variable_name)。请选择你的编程语言或风格指南偏好的格式。
technical该转换工具会先按空格、下划线、连字符、点号以及 camelCase 大小写边界拆分输入,再按所选样式重新组合。这意味着它能干净地重写诸如 “userIDList” 或 “data-export.v2” 这样的标识符,而不会丢失中间的任何片段。
technical可以。每一行都会独立转换并保留原有的换行符,因此粘贴一组标题、一段代码块或一列 CSV 数据后,你会得到结构相同的内容——只有每行的大小写发生变化。
features可以。该工具采用支持 Unicode 的 JavaScript 字符串方法,因此带重音的拉丁字母(café → CAFÉ)、西里尔文、希腊文等文字都能正确转换大小写。阿拉伯文、中日韩文字等无大小写之分的文字则保持原样,这是预期行为。
compatibility可以。转换完全在你的浏览器中运行,不会上传任何内容,没有水印,也不限制使用次数。结果一就绪即可复制或下载。
privacy粘贴你的文字并选择 UPPERCASE 大写样式——每个字母都会变成大写。用小写则反向转换,或用 aLtErNaTiNg 交替大小写来制造混合效果。非常适合标题、缩略词、电子表格表头,以及你日后想撤销的、无需大喊大叫的强调。
usage选择 Title Case,转换器会将每个单词的首字母大写,适用于产品名称、列标题和简短标签。若只需将每行的首个单词首字母大写——即正文文案和按钮所用的风格——请改选 Sentence case。
features两者都会将标题中的大多数单词首字母大写,但对短单词遵循不同的风格指南规则:Chicago/MLA 大写规则针对学术标题和手稿而调校,AP/APA 则遵循记者用于新闻标题的编辑室惯例。撰写论文、书名和引文时选 Chicago/MLA,需要符合 AP Stylebook 格式的新闻标题时选 AP/APA。
featuresaLtErNaTiNg case flips every other letter and is mostly used for the mocking 'SpongeBob meme' text style on social media. iNVERSE case instead flips whatever capitalization is already there, which is a quick fix for text typed with Caps Lock accidentally left on.
tipsIt depends on the language's convention: camelCase for JavaScript/TypeScript variables and functions, PascalCase for React component names and C#/Java classes, snake_case for Python variables and most Postgres/MySQL column names, and CONSTANT_CASE for constants and environment variables in almost any language. Paste an identifier once and click through the modes to instantly see it in whichever style your codebase's linter expects.
technicaldot.case joins words with periods instead of spaces or underscores (my.config.key), matching the format used by Java and Spring properties files, nested configuration keys, npm package namespaces, and some i18n translation-key files. It's a narrower use case than snake_case or kebab-case, but it's the exact format those config formats expect.
technicalHow Case Converter helps you get it done
Real problems it solves every day — for businesses, creators, and everyday tasks. Find the use case that fits you and start in seconds.
代码重构与变量重命名
在 JavaScript、Python、Go、Rust 和 Swift 代码库之间移植代码时,在 camelCase、PascalCase、snake_case 和 CONSTANT_CASE 之间转换变量名
适配 SEO 的 URL 别名
将博客文章标题、产品名称和分类标题转换成短横线连字(kebab-case)URL 别名,适用于在 Google 中排名优异的 WordPress、Shopify、Webflow 和 Next.js 页面
文章标题与博客标题
在 Medium、Substack、Ghost 和 WordPress 发布前,为草稿统一应用标题大小写或句首大写,让标题符合你的编辑风格规范
数据库列与字段命名
在导入 CSV、构建迁移和对齐 ORM 模型时,将列名统一为适用于 Postgres 和 MySQL 的 snake_case,或适用于 SQL Server 的 PascalCase
邮件主题行与简报标题
统一 Mailchimp、ConvertKit 和 HubSpot 各类营销活动中主题行的大小写,让每封电子报、滴灌邮件和事务性邮件读起来都风格一致
导入前清理 CSV 表头
在导入 Pandas、BigQuery、Looker 或 Excel 之前,将杂乱的 CSV 表头行(含空格、大小写混用、标点)转换为 snake_case 或 camelCase 标识符
Social Captions & Meme Text
Turn a plain sentence into aLtErNaTiNg case for the mocking 'SpongeBob meme' format, or fix accidental Caps-Lock text with iNVERSE case before posting a caption or comment.
学术论文与引文标题格式化
Format paper and book titles correctly for a bibliography using Title Case (Chicago/MLA) for academic citations or Title Case (AP/APA) for journalism-style headlines, matching whichever style guide your course or publication requires.
DevOps Config Keys & Branch Names
Generate kebab-case git branch names, CONSTANT_CASE environment-variable keys, and dot.case configuration keys for Docker, Kubernetes and CI/CD YAML files straight from a feature name or ticket title.
Spreadsheet & CSV Data Cleanup
Paste a column of inconsistently-cased names, cities or product codes copied out of a spreadsheet, run the whole block through Title Case or UPPERCASE in one pass, then paste the cleaned column back — since each line converts independently with line breaks preserved, row order and structure stay intact.
Pixoate