String Case Converter
Convert text between camelCase, snake_case, kebab-case, PascalCase, and 10 more formats instantlyEnter your text
0 chars · 0 words
Converted output — click ⎘ to copy any format
camelCase
helloWorld
PascalCase
HelloWorld
snake_case
hello_world
kebab-case
hello-world
SCREAMING_SNAKE_CASE
HELLO_WORLD
SCREAMING-KEBAB-CASE
HELLO-WORLD
dot.case
hello.world
Train-Case
Hello-World
Title Case
Hello World
Sentence case
Hello world
UPPER CASE
HELLO WORLD
lower case
hello world
aLtErNaTiNg CaSe
HeLlO wOrLd
tOGGLE cASE
hELLO wORLD
Frequently Asked Questions
What is a case converter?
A case converter transforms text between different identifier naming conventions — camelCase, snake_case, PascalCase, kebab-case, SCREAMING_SNAKE_CASE, and more. It is used to reformat variable names, API keys, and configuration properties to match a project's coding style.
What is the difference between camelCase, PascalCase, snake_case, and kebab-case?
camelCase (myVariableName) — JavaScript variables and functions, Java fields. PascalCase (MyClassName) — class names in most languages. snake_case (my_variable_name) — Python variables, Ruby, PostgreSQL columns, Rust variables. kebab-case (my-component-name) — CSS classes, HTML attributes, URL slugs, CLI flags. SCREAMING_SNAKE_CASE — constants in many languages.
What naming convention should I use for CSS classes?
BEM (Block__Element--Modifier) with kebab-case is the most widely adopted convention for CSS: .card__title--highlighted. Plain kebab-case (.card-title) is simpler and sufficient for small projects. camelCase (.cardTitle) is used in CSS Modules and styled-components where JavaScript and CSS are coupled. Avoid PascalCase for plain CSS class names.
How do I convert snake_case to camelCase in Python or JavaScript?
Python: "".join(word.capitalize() for word in s.split("_")).replace(first_char, first_char.lower(), 1). Or: import re; re.sub("_([a-z])", lambda m: m.group(1).upper(), s). JavaScript: s.replace(/_([a-z])/g, (_, c) => c.toUpperCase()). This tool converts all major cases in one click.
Does the case converter handle acronyms correctly (e.g. JSON, HTTP)?
Acronym handling in case conversion is heuristic. "XMLParser" may split to "XML Parser" or "x-m-l-parser" depending on the algorithm. This tool uses a common heuristic: consecutive uppercase letters are treated as a word (XML → xml in snake_case). If the result is incorrect for your specific acronym, adjust manually after conversion.
About String Case Converter
Paste any text and convert it to 14 common naming conventions in one click: camelCase, PascalCase, snake_case, kebab-case, SCREAMING_SNAKE_CASE, SCREAMING-KEBAB-CASE, dot.case, Train-Case, Title Case, Sentence case, UPPER CASE, lower case, aLtErNaTiNg CaSe, and tOGGLE cASE. Smart word-boundary detection handles spaces, hyphens, underscores, dots, camelCase, PascalCase, acronyms, and adjacent numbers. All processing runs in your browser — nothing is sent to a server.