Text Case Converter
Convert text between camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case, and more.
Last updated:
theQuickBrownFoxJumpsOverTheLazyDogTheQuickBrownFoxJumpsOverTheLazyDogthe_quick_brown_fox_jumps_over_the_lazy_dogthe-quick-brown-fox-jumps-over-the-lazy-dogTHE_QUICK_BROWN_FOX_JUMPS_OVER_THE_LAZY_DOGThe Quick Brown Fox Jumps Over The Lazy DogThe quick brown fox jumps over the lazy dogthe quick brown fox jumps over the lazy dogTHE QUICK BROWN FOX JUMPS OVER THE LAZY DOGPaste text above and pick a target case — camelCase, snake_case, kebab-case, PascalCase, CONSTANT_CASE, Title Case, and more. Conversion is instant and local.
What is Case Converter?
A case converter transforms text between the naming conventions developers use every day: camelCase for variables, PascalCase for classes, snake_case for Python and database columns, kebab-case for URLs and CSS, and CONSTANT_CASE for environment variables. It saves you from manually retyping identifiers when moving code or data between languages and styles that follow different conventions.
How to convert text case
- 1Paste the text or identifier you want to convert.
- 2The tool detects word boundaries from spaces, punctuation, and case transitions.
- 3Pick your target case from the options.
- 4Copy the converted result.
Use Cases
Port identifiers across languages
Convert a snake_case Python field to camelCase for JavaScript, or PascalCase for a C# class.
Generate slugs and CSS names
Turn a title into a kebab-case URL slug or CSS class in one step.
Normalize environment variables
Convert a config key to CONSTANT_CASE for use as an environment variable name.
Code Examples
Same phrase, every case
hello world -> helloWorld (camelCase)
hello world -> HelloWorld (PascalCase)
hello world -> hello_world (snake_case)
hello world -> hello-world (kebab-case)
hello world -> HELLO_WORLD (CONSTANT_CASE)Key Concepts
- Word boundary detection
- The converter splits input on spaces, punctuation, and case transitions (fooBar → foo + Bar), then rejoins with the target style.
- camelCase vs PascalCase
- camelCase lowercases the first word (userName); PascalCase (a.k.a. UpperCamelCase) capitalizes every word (UserName).
- kebab vs snake
- kebab-case joins with hyphens (URL/CSS friendly); snake_case joins with underscores (Python, SQL). Hyphens are invalid in most identifiers.
Tips & Best Practices
- ▸Acronyms are ambiguous — 'HTTPServer' may split as HTTP+Server or H+T+T+P+Server depending on rules. Verify edge cases.
- ▸kebab-case can't be used as a variable name in most languages (hyphen = minus); it's for URLs, CSS, and file names.
- ▸CONSTANT_CASE is the convention for environment variables and compile-time constants.
- ▸Preserve intended acronyms manually if the auto-split gets them wrong.
Frequently Asked Questions
Which cases are supported?
camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case, Sentence case, lowercase, and UPPERCASE.
How are non-ASCII characters handled?
Unicode letters are preserved. Word boundaries are detected by whitespace, punctuation, and case transitions, so most mixed-language inputs work well.
Related Tools
Regex Tester
Test regular expressions online. Live match highlighting, capture groups, and support for JavaScript flags (g, i, m, s, u, y).
XML Formatter
Format, beautify, and validate XML documents online. Handles namespaces, CDATA sections, and mixed content.
SQL Formatter
Format and beautify SQL queries. Supports SELECT, JOIN, subqueries, CTEs, and multiple SQL dialects.
Text Diff
Compare two text snippets side-by-side and highlight the differences. Word- and line-level diff, everything runs in your browser.
Word Counter
Count words, characters, sentences, paragraphs, and reading time in any text. Includes a byte-size estimate for storage planning.
Markdown → HTML
Convert Markdown to HTML with a live preview. Supports GitHub Flavored Markdown (tables, task lists, strikethrough) and code fences.