QuikTool

Case Converter

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

Common cases

camelCase

myVariableName

PascalCase

MyVariableName

snake_case

my_variable_name

kebab-case

my-variable-name

CONSTANT_CASE

MY_VARIABLE_NAME

Title Case

My Variable Name

Sentence case

My variable name.

lower case

my variable name

UPPER CASE

MY VARIABLE NAME

More cases

dot.case

my.variable.name

path/case

my/variable/name

Train-Case

My-Variable-Name

Capital Case

My Variable Name

aLtErNaTiNg cAsE

mY vArIaBlE nAmE

tOGGLE cASE

mY vARIABLE nAME

Runs in your browser. Nothing is uploaded.

What is Case Converter?

A case converter changes how the words in a piece of text are written: all lower case, all upper case, camelCase, snake_case and so on. Programmers use it constantly to rename variables, functions, database columns, CSS classes and file names between the conventions of different languages and tools, and writers use it to fix headings and sentences that were typed in the wrong case.

This case converter shows all the common styles side by side the moment you type: camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case, Sentence case, lower case and UPPER CASE, plus dot.case, path/case, Train-Case, Capital Case, aLtErNaTiNg cAsE and tOGGLE cASE. It splits words intelligently, so XMLHttpRequest becomes xml_http_request, version2Beta keeps its digit with the word before it, and apostrophes, punctuation and accents are handled correctly. Each line is converted on its own, so you can paste a whole list of names and convert them in one go, and every result has its own Copy button.

Because the conversion runs entirely in your browser, nothing you paste is uploaded, which makes it safe for source code and internal names. Unicode text works too: accented letters, German sharp s and non-Latin scripts are handled, and blank lines are kept so your list keeps its shape.

How to use

  1. Type or paste your text into the box. You can paste several lines, and each line is converted separately.
  2. Read the results for every case below the box. They update as you type.
  3. Click Copy on the one you need.
  4. Tick the indentation option if you want word-based cases such as snake_case to keep each line's leading spaces.
  5. Use Load sample to see how acronyms, digits and punctuation are treated.

Example

Input

XMLHttpRequest parses user_id

Output

camelCase: xmlHttpRequestParsesUserId
snake_case: xml_http_request_parses_user_id
kebab-case: xml-http-request-parses-user-id
CONSTANT_CASE: XML_HTTP_REQUEST_PARSES_USER_ID

Frequently asked questions

What is the difference between camelCase and PascalCase?
Both join words without separators and capitalize each new word. camelCase starts with a lower case letter, like myVariableName, while PascalCase starts with a capital, like MyVariableName.
How does it handle acronyms and numbers?
Runs of capitals followed by a word are split, so XMLHttpRequest gives xml, http and request. Digits stay with the word before them, so version2Beta gives version2 and beta, and names like md5 are not broken apart.
Does it keep punctuation?
The text cases, which are lower, upper, Title, Sentence, alternating and toggle, keep your punctuation and spacing. The word-based cases such as camelCase and snake_case drop punctuation, because they build identifiers.
Is my text uploaded anywhere?
No. Everything is converted in your browser and nothing you enter leaves your device.