返回首页
博客

大小写转换器

转换文本的大小写

输入文本

0 字符 · 0 单词 · 0 行
大写字母
0
小写字母
0
数字
0
特殊字符
0

输出文本

转换结果将显示在这里...
Convert all letters to uppercase

转换选项

专业技巧

  • JavaScript/TypeScript 变量名使用 camelCase
  • React 组件名和类名使用 PascalCase
  • Python 变量和函数使用 snake_case
  • CSS 类名和 URL slug 使用 kebab-case
  • 环境变量和常量使用 CONSTANT_CASE

About the Text Case Converter

The Text Case Converter fixes a small but constant annoyance: text that's in the wrong case for where it needs to go. A headline pasted in from a spreadsheet is stuck in all caps, a variable name copied from documentation uses spaces instead of camelCase, or a CSV column header needs to become a snake_case database field. Retyping or manually reformatting each one is slow and error-prone, especially across long documents or lists of identifiers, so this tool converts pasted text into the exact case format you need in one pass.

Paste your text into the input box and choose a target format — UPPERCASE, lowercase, Title Case, camelCase, snake_case, and other common conventions are all supported as one-click conversions. The tool re-parses word boundaries from your original text (spaces, punctuation, and existing capitalization patterns) so it can rebuild proper camelCase or snake_case output rather than just flipping letter case, which matters when you're converting phrases into code-safe identifiers. Because everything runs client-side in your browser, the conversion is instant and there's no upload step or account needed.

This makes it handy for developers renaming variables between naming conventions, writers cleaning up inconsistently capitalized headings, or anyone standardizing text pulled from different sources before pasting it somewhere else. Since processing happens locally, none of your text is sent to a server, which is useful if you're working with internal code, draft content, or anything you'd rather not paste into a cloud service.

How to convert text case

Paste text and instantly convert it to your target case format.

  1. 1

    Paste your text

    Copy the text you want to convert and paste it into the input field.

  2. 2

    Choose a case format

    Select the target format you need, such as UPPERCASE, lowercase, Title Case, camelCase, or snake_case.

  3. 3

    Review the converted output

    The tool instantly rewrites your text into the selected case format in the output area.

  4. 4

    Copy the result

    Copy the converted text and paste it into your document, code editor, or spreadsheet.

  5. 5

    Try another format if needed

    Switch to a different case option any time to reconvert the same input without re-pasting.

Frequently Asked Questions

What text case formats are supported?

Our case converter supports UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, and CONSTANT_CASE. Each format has its own use cases in writing and programming.

What is camelCase used for?

camelCase (e.g., myVariableName) is the standard naming convention for variables and functions in JavaScript, Java, and many other programming languages. The first word is lowercase and each subsequent word starts with an uppercase letter.

What is the difference between Title Case and Sentence case?

Title Case capitalizes the first letter of every major word (e.g., "The Quick Brown Fox"), while Sentence case only capitalizes the first word and proper nouns (e.g., "The quick brown fox"). Title Case is used for headings; Sentence case for normal prose.