Convert text between camelCase, PascalCase, snake_case, kebab-case, UPPERCASE, lowercase, and Title Case in one click. Free online string case converter.
What is Case Converter?
Case Converter is a free online tool that transforms text between seven
popular casing formats: camelCase, PascalCase, snake_case, kebab-case,
UPPERCASE, lowercase, and Title Case. Simply paste or type your text and
click the target format — the converted result appears instantly. This
tool intelligently detects word boundaries in compound strings
regardless of the original format, so it can correctly convert
"helloWorld" to "hello_world" or "Hello World" just as easily. All
processing happens in your browser with zero server calls.
When to use it?
Use the Case Converter whenever you need to adapt variable names,
function names, or identifiers between different naming conventions.
It's particularly useful when translating code between languages that
follow different casing standards — for example, converting JavaScript's
camelCase to Python's snake_case. It also comes in handy when generating
CSS class names, database column names, URL slugs, or constants that
require a specific casing style.
Common use cases
Developers commonly use Case Converter to rename variables when porting
code between programming languages with different naming conventions,
generate consistent CSS class names in kebab-case from design specs
written in Title Case, create database column names in snake_case from
application-layer camelCase properties, format constants in
SCREAMING_SNAKE_CASE, build URL-friendly slugs in kebab-case from page
titles, and batch-convert identifier lists when refactoring codebases to
adhere to new style guides or linting rules.
Naming conventions by programming language
Each language has established conventions: JavaScript uses camelCase for variables and PascalCase for classes. Python uses snake_case for functions and variables, PascalCase for classes. CSS uses kebab-case for class names and custom properties. Go uses PascalCase for exported identifiers and camelCase for unexported ones. Rust uses snake_case for functions and SCREAMING_SNAKE_CASE for constants. Following these conventions makes your code instantly familiar to other developers in that ecosystem and avoids linter warnings.