Case Converter

Convert text between camelCase, snake_case, kebab-case, and 10+ formats

Input Text

Converted Results

lowercase
hello world this is some text
UPPERCASE
HELLO WORLD THIS IS SOME TEXT
Title Case
Hello World This Is Some Text
Sentence case
Hello world this is some text
camelCase
helloWorldThisIsSomeText
PascalCase
HelloWorldThisIsSomeText
snake_case
hello_world_this_is_some_text
kebab-case
hello-world-this-is-some-text
CONSTANT_CASE
HELLO_WORLD_THIS_IS_SOME_TEXT
dot.case
hello.world.this.is.some.text

Related Tools

What is Case Conversion?

Case conversion transforms text between different capitalization and formatting styles. Different programming languages, file systems, and naming conventions use different case styles—camelCase for JavaScript variables, snake_case for Python, kebab-case for URLs, and more.

This free online case converter instantly transforms your text into 10+ different formats. Whether you're refactoring code, creating consistent naming conventions, or formatting content, this tool makes it effortless to convert between cases with a single click.

Common Case Styles Explained

camelCase

myVariableName

First word lowercase, subsequent words capitalized. Standard in JavaScript, Java, TypeScript, and C# for variables and functions.

PascalCase

MyVariableName

Every word capitalized. Used for class names in most languages, React components, and C# methods.

snake_case

my_variable_name

Words separated by underscores. Standard in Python, Ruby, PHP, and SQL database columns.

kebab-case

my-variable-name

Words separated by hyphens. Used in URLs, CSS class names, HTML attributes, and npm packages.

CONSTANT_CASE

MY_VARIABLE_NAME

All uppercase with underscores. Used for constants, environment variables, and configuration keys.

Case Conventions by Language

LanguageVariablesFunctionsClassesConstants
JavaScriptcamelCasecamelCasePascalCaseCONSTANT_CASE
Pythonsnake_casesnake_casePascalCaseCONSTANT_CASE
CSSkebab-casekebab-case
GocamelCasecamelCasePascalCaseMixedCase

Common Use Cases

Code Refactoring

Convert between naming conventions when migrating code between languages or standardizing a codebase.

URL Slug Creation

Convert titles to kebab-case for SEO-friendly URLs and file paths.

Database Columns

Convert field names between API responses (camelCase) and database columns (snake_case).

Environment Variables

Convert configuration keys to CONSTANT_CASE for .env files and system variables.

Frequently Asked Questions

What's the difference between camelCase and PascalCase?

Both capitalize word boundaries. camelCase starts with lowercase (userName), while PascalCase starts with uppercase (UserName). Use PascalCase for classes, camelCase for variables.

Why is kebab-case preferred for URLs?

Hyphens are treated as word separators by search engines, improving SEO. Underscores in URLs are often treated as part of the word.

Can I convert multiple lines at once?

Yes! Paste multiple lines and the conversion applies to all text. Each word boundary is detected and converted accordingly.