Text Case Converter

Convert text between camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case, and more — instantly, in your browser.

Runs in your browser — nothing uploaded
Input
lowercase
all letters lower
hello world — make this any case
UPPERCASE
all letters upper
HELLO WORLD — MAKE THIS ANY CASE
Title Case
Capitalize Main Words
Hello World — Make This Any Case
Sentence case
First word and sentence starts.
Hello world — make this any case
camelCase
firstWord lowercase, rest CapCase
helloWorld—MakeThisAnyCase
PascalCase
EveryWordCapitalized
HelloWorld—MakeThisAnyCase
snake_case
lowercase_with_underscores
hello_world_—_make_this_any_case
kebab-case
lowercase-with-dashes
hello-world-—-make-this-any-case
CONSTANT_CASE
UPPERCASE_WITH_UNDERSCORES
HELLO_WORLD_—_MAKE_THIS_ANY_CASE
dot.case
lowercase.with.dots
hello.world.—.make.this.any.case

Use this free text case converter to flip between every common casing style in one place — perfect for renaming variables, writing slugs, normalising spreadsheet columns, or polishing headlines. Convert any input to camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case, Sentence case, and more.

Private by design — your data never leaves your device

How to use it

No account, no upload — it all happens on your device.

1
Type or paste your text into the input box.
2
Every case format updates instantly in the grid below — lowercase, UPPERCASE, Title, Sentence, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, and dot.case.
3
Hit the copy icon on any card to copy that specific format.

Case conventions, decoded

Where each one shows up in real codebases.

CaseExampleUsed by
camelCaseuserNameJavaScript / TypeScript variables and functions
PascalCaseUserNameClass names, React components, TypeScript types
snake_caseuser_namePython, Ruby, Rust functions, SQL columns
kebab-caseuser-nameURLs, CSS classes, HTML attributes, npm package names
CONSTANT_CASEUSER_NAMEEnvironment variables, language-level constants
dot.caseuser.nameJava packages, settings keys, OpenTelemetry attributes
Title CaseUser NameHeadings, titles, button labels
Sentence caseUser nameModern UI labels, descriptions, prose

Picking the right case for your context

Style guides exist for a reason — pick one and stay consistent.

  • Frontend code: camelCase for JS/TS, PascalCase for components and types, kebab-case for CSS classes and URLs.
  • Backend code: snake_case in Python, Ruby, and Rust. camelCase in Java. PascalCase in C# and Go for exported names.
  • Databases: snake_case is the dominant convention for column and table names — case-insensitive handling is more reliable.
  • Environment variables: CONSTANT_CASE, always. Shells and Docker conventions assume it.
  • URLs: kebab-case. Search engines treat hyphens as word separators; underscores they ignore.
  • UI labels: modern style guides (Apple, Google Material) favor Sentence case for almost everything. Title Case looks dated outside of headlines and proper nouns.

Things this tool doesn't try to do

  • Detect language. Title Case rules differ between English, French, Spanish, and German. The tool uses AP-style English rules.
  • Preserve acronyms."HTML parser" converted to camelCase becomes htmlParser, not HTMLParser. Style guides differ on which is correct; pick one and fix up after.
  • Handle locale-specific casing. Turkish i/İ and German ß/SS have edge cases that need language-aware libraries. For ASCII English text, this tool is reliable.

Frequently asked

How does the tool decide where one word ends and the next begins?
It splits on whitespace, underscores, dashes, dots, and slashes — and also at the boundary where a lowercase letter is followed by an uppercase one (so 'helloWorld' becomes two words). That covers almost every code-style and prose-style input you will paste in.
Which Title Case rules does this follow?
AP-style: capitalize the first and last words, capitalize all other words except short articles, conjunctions, and prepositions (a, an, and, the, of, in, on, etc.). Hyphenated words and proper nouns are not specially handled — if you need strict style-guide compliance, double-check the output.
Is my text uploaded anywhere?
No. Tokenization and case conversion are simple string transformations that run in your browser. Nothing is sent to a server.

Related tools

Word CounterCount words, characters, sentences, and paragraphs in your text. Estimates reading and speaking time. Runs entirely in your browser.Lorem Ipsum GeneratorGenerate Lorem Ipsum placeholder text — paragraphs, sentences, or words. Classic Latin or playful hipster filler. Copy-ready.Diff CheckerCompare two blocks of text side-by-side and highlight added, removed, and changed lines. Runs entirely in your browser.