Text Case Converter
Convert text between case formats
Output...
Output...
Output...
Output...
Output...
Output...
Output...
Output...
Case Conventions
camelCase
Used in JavaScript variables, function names
PascalCase
Used in class names, React components
snake_case
Used in Python, Ruby, database columns
kebab-case
Used in URLs, CSS classes, file names
About Text Case Converter
1What is it?
Convert text between different case formats instantly. Transform text to UPPERCASE, lowercase, Title Case, Sentence case, camelCase, snake_case, kebab-case, CONSTANT_CASE, and more. Essential for developers naming variables, creating URL slugs, or reformatting text content.
2Use Cases
- Convert variable names between naming conventions
- Create URL-friendly slugs from titles
- Format database column names consistently
- Convert CSS class names between formats
- Fix accidentally typed ALL CAPS text
- Create constants in UPPER_SNAKE_CASE
- Format API field names correctly
3Examples
To uppercase
Input
hello world
Output
HELLO WORLD
To camelCase
Input
Hello World Example
Output
helloWorldExample
To snake_case
Input
My Variable Name
Output
my_variable_name
To kebab-case
Input
create new user
Output
create-new-user
?Frequently Asked Questions
What's the difference between camelCase and PascalCase?
camelCase starts with lowercase: 'myVariableName'. PascalCase (also called UpperCamelCase) starts with uppercase: 'MyVariableName'. camelCase is common for variables/functions in JavaScript. PascalCase is used for classes and React components.
When should I use snake_case vs kebab-case?
snake_case (with underscores) is common in Python, Ruby, and database columns. kebab-case (with hyphens) is standard for CSS classes, URL slugs, and file names. Some languages don't allow hyphens in identifiers, making snake_case more universal.
What is CONSTANT_CASE used for?
CONSTANT_CASE (or UPPER_SNAKE_CASE) is used for constants and environment variables. Examples: MAX_CONNECTIONS, API_BASE_URL, DEBUG_MODE. The all-caps makes them visually distinct from regular variables.
How does Title Case differ from Sentence case?
Title Case Capitalizes Every Word Like This. Sentence case capitalizes only the first word like this. Title Case is for headings; Sentence case is for regular text.