Case Converter
Paste any text and instantly convert it to lowercase, UPPERCASE, camelCase, snake_case, and more.
lowercase
All letters in lower case
UPPERCASE
All letters in upper case
Title Case
First letter of each word capitalised
Sentence case
First letter of each sentence capitalised
camelCase
No spaces, each word capitalised except the first
PascalCase
No spaces, every word capitalised
snake_case
Lowercase words joined by underscores
kebab-case
Lowercase words joined by hyphens
CONSTANT_CASE
Uppercase words joined by underscores
aLtErNaTiNg
Alternates between lower and upper case letters
What is a Case Converter?
A case converter transforms text between common capitalisation and naming conventions used in programming, writing, and data formatting. Common cases include camelCase (JavaScript variables), PascalCase (class names), snake_case (Python variables and database columns), kebab-case (CSS classes and URLs), SCREAMING_SNAKE_CASE (constants), and Title Case or Sentence case for headings and prose. Converting between them manually is tedious and error-prone — a converter handles word boundary detection and transformation instantly.
Common Use Cases
- Convert database column names (snake_case) to API field names (camelCase)
- Transform CSS class names (kebab-case) to JavaScript variable names (camelCase)
- Normalise user-input strings before storing them as identifiers
- Rename variables or files to match a new codebase's naming convention
- Convert prose titles to slug-friendly URL paths (kebab-case)
How It Works
The converter first splits the input into words by detecting boundaries: spaces, underscores, hyphens, and transitions from lowercase to uppercase (for camelCase input). Each word is then lowercased, and the target format is applied — joining with the appropriate separator, capitalising the first letter of each word where needed, or uppercasing the entire string. The transformation is reversible: any supported case can be converted to any other.
Frequently Asked Questions
What is the difference between camelCase and PascalCase?
camelCase starts with a lowercase letter (myVariable). PascalCase (also called UpperCamelCase) starts with an uppercase letter (MyVariable). PascalCase is typically used for class names and React components; camelCase for variables and function names.
Why do different languages use different naming conventions?
Naming conventions are driven by community style guides and historical precedent. Python's PEP 8 mandates snake_case; JavaScript conventions favour camelCase; CSS uses kebab-case. These are not enforced by the languages themselves but by linters and peer review.
Can I convert multiple lines at once?
Yes — paste multiple identifiers or words, one per line, and the converter will process each line independently, preserving the line structure in the output.
Related Tools
Text Diff
Compare two blocks of text and highlight additions, deletions, and unchanged lines.
Regex Tester
Test and debug regular expressions with live match highlighting.
Base64 Encoder
Encode and decode strings using Base64 encoding.
URL Encoder
Encode and decode URLs with percent-encoding instantly.
JSON Formatter
Format, validate, and minify JSON data instantly.
Hash Generator
Generate MD5, SHA-1, SHA-256, and SHA-512 hashes instantly.
JWT Decoder
Decode and inspect JSON Web Tokens securely in your browser.
JWT Generator
Build and sign JSON Web Tokens with a custom payload and secret.
JSON ↔ YAML
Convert between JSON and YAML instantly with real-time validation.
Unix Timestamp
Convert Unix timestamps to human-readable dates and back instantly.
UUID Generator
Generate UUID v4 values instantly, with bulk generation and validation.
Cron Parser
Parse cron expressions into plain English and see the next scheduled run times.
SQL Formatter
Format and minify SQL queries with dialect support for MySQL, PostgreSQL, SQLite, and more.
CSV ↔ JSON
Convert CSV to JSON or JSON to CSV with support for custom delimiters and quoted fields.
Number Base Converter
Convert between decimal, hexadecimal, octal, and binary number bases.
Color Converter
Convert colours between HEX, RGB, HSL, HSV, and CMYK formats.
Smart word splitting: Input is automatically split into words regardless of whether it uses spaces, camelCase, snake_case, or kebab-case — so all identifier-style formats convert correctly in both directions.
All conversion happens locally in your browser. No text is sent anywhere.