Text Case Converter
Convert text between camelCase, PascalCase, snake_case, kebab-case, and other popular naming conventions.
About This Tool
The Text Case Converter instantly transforms any text into nine popular naming conventions used in programming and writing. Enter your text once and see all conversion results simultaneously — no need to select a target format first.
Supported formats include camelCase (used in JavaScript and Java variables), PascalCase (used in class names and React components), snake_case (common in Python and Ruby), SCREAMING_SNAKE_CASE (used for constants), kebab-case (common in CSS classes and URLs), Title Case (used in headings), plus standard UPPER CASE, lower case, and Sentence case.
The tool intelligently detects word boundaries in your input, whether it's already in camelCase, snake_case, kebab-case, space-separated, or any combination. It handles edge cases like consecutive uppercase letters (e.g., "HTMLParser" becomes "html-parser" in kebab-case) and mixed delimiters.
Each result has a one-click copy button, so you can quickly grab the exact format you need and paste it into your code editor, terminal, or document.
All processing runs entirely in your browser using native JavaScript string operations — no external libraries, no server calls, and your text is never transmitted anywhere.
How to Use
- Type or paste your text into the input field. It can be in any format: camelCase, snake_case, plain English, or mixed.
- All nine case formats appear instantly below the input as you type.
- Click the copy icon next to any result to copy that specific format to your clipboard.
- Use Ctrl+Shift+C as a keyboard shortcut to quickly copy the camelCase result.
- Click Clear to reset the input and start over.
Popular Case Conversion Examples
FAQ
Is my text safe?
Yes. All conversions happen entirely in your browser using native JavaScript string operations. No text is ever sent to any server.
What is the difference between camelCase and PascalCase?
In camelCase, the first word is lowercase and subsequent words are capitalized (e.g., myVariableName). In PascalCase, every word including the first is capitalized (e.g., MyVariableName). camelCase is common for variables and functions; PascalCase is used for classes and React components.
How does it detect word boundaries?
The tool detects word boundaries by looking for transitions between lowercase and uppercase letters (camelCase), common delimiters (underscores, hyphens, dots, slashes), and spaces. It also handles consecutive uppercase letters like "HTML" or "API" correctly.
When should I use SCREAMING_SNAKE_CASE?
SCREAMING_SNAKE_CASE (also called CONSTANT_CASE) is conventionally used for constants in many programming languages, including JavaScript (MAX_RETRY_COUNT), Python, Java, and C/C++. It makes constants visually distinct from regular variables.
Can I convert multiple lines at once?
The tool processes the entire input as a single text block. For best results with multi-line text, convert one identifier or phrase at a time. The UPPER CASE, lower case, and Sentence case formats work well with full sentences.
What is kebab-case used for?
kebab-case (words separated by hyphens) is commonly used in CSS class names, URL slugs, HTML attributes, and file names. It is also the standard naming convention for npm packages and many CLI tools.
Related Tools
JSON Formatter
Format, validate, and beautify JSON with syntax highlighting and tree view.
Regex Tester
Test regular expressions with real-time match highlighting and capture groups.
Lorem Ipsum Generator
Generate placeholder text in paragraphs, sentences, or words with HTML wrap options.
CSV ↔ JSON Converter
Convert between CSV and JSON formats with delimiter selection, header toggle, and file drag-and-drop.
Unicode Inspector
Inspect Unicode characters with code point, UTF-8/UTF-16 encoding, character name, category, and block details.
Whitespace Visualizer
Visualize invisible characters like spaces, tabs, newlines, zero-width spaces, and BOM. Detect line endings and clean hidden characters.
String Length Calculator
Calculate string length in characters, code points, grapheme clusters, and byte sizes for UTF-8, UTF-16, and UTF-32.
Unicode Normalizer
Normalize Unicode text to NFC, NFD, NFKC, or NFKD forms. Compare forms side by side with character-level breakdowns.
ICU Message Format Tester
Test and preview ICU MessageFormat patterns with live variable substitution, plural, select, number, and date formatting.
i18n Key Generator
Generate structured i18n translation keys from UI text. Supports JSON, YAML, TypeScript, XLIFF, PO/Gettext output formats.
Locale String Tester
Test JavaScript Intl API formatters with any locale. Preview NumberFormat, DateTimeFormat, ListFormat, PluralRules, Collator, and DisplayNames.
Reverse Text
Reverse text by characters, words, or lines with multiple transformation modes.