Skip to content
Tools

Text case converter

Convert text between camelCase, snake_case, kebab-case, and more.

Case reference

lowercase
hello world
UPPERCASE
HELLO WORLD
Title Case
Hello World
Sentence case
Hello world
camelCase
helloWorld
PascalCase
HelloWorld
snake_case
hello_world
kebab-case
hello-world
CONSTANT_CASE
HELLO_WORLD
dot.case
hello.world

About the Text case converter

This text case converter shows your text in ten cases at once, from lowercase and Title Case to camelCase, snake_case and CONSTANT_CASE. Use it to rename variables, turn a heading into a URL slug, or fix text typed with caps lock on. Conversion happens in your browser, and nothing is sent to a server.

How to use it

  1. Type or paste into the Text field, or click Load sample.
  2. Read the Conversions list, which updates as you type.
  3. Click the copy icon next to any case to copy that version.
  4. Use the Apply to text buttons to replace your input with lowercase, UPPERCASE, Title Case, camelCase or snake_case and keep editing.

Supported cases

lowercase, UPPERCASE, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE and dot.case.

How words are split

Spaces, underscores, hyphens, dots and camelCase boundaries all start a new word, so myVariableName, my_variable_name and my-variable-name convert the same way. Other punctuation, such as commas, stays attached to the word.

Title Case gotcha

Title Case capitalizes every word and lowercases the rest of it, so short words like "of" are capitalized and acronyms like NASA become Nasa.

Questions

What is the difference between camelCase and PascalCase?
camelCase starts with a lowercase letter (helloWorld), while PascalCase capitalizes every word including the first (HelloWorld). JavaScript commonly uses camelCase for variables and PascalCase for classes and components.
When should I use snake_case vs kebab-case?
snake_case is common for Python variables and database columns. kebab-case is common in URLs, CSS class names and file names.
What is CONSTANT_CASE?
It is uppercase words joined by underscores, such as MAX_RETRIES, and is the usual style for constants and environment variables.