Text & Data

Case Converter

Paste any identifier or phrase and instantly convert it to camelCase, PascalCase, snake_case, CONSTANT_CASE, kebab-case, dot.case, Title Case and more — handy for renaming variables, columns and constants.

Input (any identifier or phrase)
camelCase
helloWorld
PascalCase
HelloWorld
snake_case
hello_world
CONSTANT_CASE
HELLO_WORLD
kebab-case
hello-world
dot.case
hello.world
path/case
hello/world
Title Case
Hello World
Sentence case
Hello world
lower case
hello world
UPPER CASE
HELLO WORLD

About this tool

Naming is one of the small frictions in every codebase. A column comes back as user_id, but your DTO wants userId; a config key is kebab-case while the constant needs to be SCREAMING_SNAKE_CASE. This case converter takes any identifier or phrase and rewrites it into every common casing at once, so you copy the exact form you need instead of hand-editing letter by letter.

It handles the messy inputs too — mixed separators, existing camelCase, stray spaces — by first splitting the text into words, then rejoining them in the target style. That means TitleCase, dot.case and CONSTANT_CASE all stay consistent even when the source is inconsistent.

How to use

  1. Paste or type your variable name, column, or phrase into the input box.
  2. Read the converted results for each casing style shown side by side.
  3. Find the row matching the convention you need (camelCase, snake_case, kebab-case, and so on).
  4. Click copy next to that style to put it on your clipboard.
  5. Replace the input to convert the next identifier — results update as you type.

Features

  • Converts to camelCase, PascalCase, snake_case, CONSTANT_CASE, kebab-case, dot.case and Title Case.
  • Splits mixed input intelligently so camelCase and snake_case sources both work.
  • Handles multi-word phrases, not just single tokens.
  • Live results update instantly as you type — no submit button.
  • One-click copy for each individual casing style.
  • Ideal for renaming variables, database columns, env keys and constants.
  • Runs entirely in the browser with no network calls.

Frequently asked questions

Is my text sent to a server?

No. All splitting and case transformation runs locally in JavaScript. The tool works offline once the page has loaded and never transmits what you type.

How does it handle an input that is already camelCase?

It detects the case boundaries — the transition from a lowercase letter to an uppercase one — and splits there, so getUserId becomes the words get, user, id before being rejoined in your chosen style.

What is the difference between CONSTANT_CASE and snake_case?

They use the same underscore separator, but CONSTANT_CASE is fully uppercase (MAX_RETRY_COUNT) while snake_case is lowercase (max_retry_count). Constants and enum values typically use the uppercase form.

Does it keep numbers and acronyms intact?

Numbers are preserved as their own segments, and runs of digits are not split apart, so version2 and http2 keep their numeric parts together.

Can I convert a whole sentence?

Yes. Words separated by spaces are treated as separate tokens, so a sentence can be turned into Title Case, kebab-case for a URL slug, or snake_case as needed.