在 UPPER、lower、Title、camel、Pascal、snake、kebab 等格式之间转换文本。
A case converter rewrites text into the naming style you need: upper, lower, title, camelCase, PascalCase, snake_case, kebab-case, and CONSTANT_CASE. It is the fastest way to fix inconsistent naming in code, tidy a heading, or match a style guide.
Conversion happens in your browser, character by character. Nothing is uploaded, so you can paste identifiers, class names, or copy from a private document without worrying about it.
Convert a phrase to every style
输入
hello world examples输出
UPPER CASE: HELLO WORLD EXAMPLES
lower case: hello world examples
Title Case: Hello World Examples
camelCase: helloWorldExamples
PascalCase: HelloWorldExamples
snake_case: hello_world_examples
kebab-case: hello-world-examples
CONSTANT_CASE: HELLO_WORLD_EXAMPLESSplit existing camel humps
输入
fontSize输出
snake_case: font_size
CONSTANT_CASE: FONT_SIZECapital letters are treated as word boundaries, so fontSize becomes font_size.
Build an identifier from plain words
输入
get user name输出
camelCase: getUserName
PascalCase: GetUserNamecamelCase starts lowercase and capitalizes later words, as in getUserName. PascalCase capitalizes every word, as in GetUserName.
It splits on spaces, hyphens, underscores, and capital letters, so both plain phrases and existing identifiers convert cleanly.
Punctuation inside the text is left alone while the casing changes. Run messy input through the text cleaner first if you need whitespace normalized too.
No. The conversion happens entirely in your browser.
Paste words, headings or identifiers, then pick a case below.