Code Flux

Case Converter

Convert text between different cases: UPPER, lower, Title, camelCase, PascalCase, and more.

Example: "HELLO WORLD"

What is Case Converter?

Naming conventions are one of those things that seem trivial until you're renaming 50 variables from camelCase to snake_case because your team switched their Python style guide. The Case Converter handles 13 different case formats — from the obvious (UPPERCASE, lowercase) to the programming-specific (camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, dot.case, path/case) and even the novelty ones (aLtErNaTiNg, iNVERSE). Under the hood, the tool first tokenizes your input by splitting on existing word boundaries — it detects camelCase humps, underscores, dashes, dots, slashes, and whitespace using a regex pipeline that handles mixed-format input gracefully. Once it has a clean array of lowercase words, it reassembles them with the appropriate separator and capitalization rules for your target format. Title Case capitalizes the first letter of every word. Sentence case capitalizes only the first word. PascalCase and camelCase join words with no separator but differ on the first character. This is the kind of string manipulation you could write in 10 minutes, but you'd still have to handle edge cases around consecutive uppercase letters, numbers embedded in identifiers, and mixed-delimiter input. Rather than writing a throwaway script every time, just paste your text and pick a format. It's especially handy when you're porting code between languages with different conventions — say, converting JavaScript camelCase props to Python snake_case kwargs, or turning a heading into a URL-friendly kebab-case slug.

How to Use

  1. Enter or paste your text into the input area
  2. Select the case format you want from the options
  3. Click 'Convert' to transform your text
  4. Copy the result for use in your code or document

Common Use Cases

  • Converting variable names between naming conventions
  • Formatting titles and headings consistently
  • Creating URL-friendly slugs (kebab-case)
  • Preparing text for configuration files
  • Converting between programming language naming styles

Frequently Asked Questions

camelCase starts lowercase and capitalizes each subsequent word boundary — think myVariableName. PascalCase does the same but capitalizes the first word too — MyClassName. In practice, JavaScript and Java conventions use camelCase for variables and functions, while PascalCase is the go-to for class names, React components, and C# everything. The tool handles both, including detecting existing camelCase boundaries in your input.
snake_case (words_joined_by_underscores) is the Python and Ruby standard, and it's also how most databases name columns. kebab-case (words-joined-by-dashes) shows up in URLs, CSS class names, and file names because dashes are URL-safe and readable. Quick rule of thumb: if it's code, check your language's style guide. If it's a URL or CSS selector, kebab-case is almost always right.
Sentence case capitalizes the first letter and leaves everything else lowercase — like a normal sentence. Title Case capitalizes the first letter of every word — Like This. Sentence case reads more naturally and is the modern default for UI text and headings. Title Case is still common for book titles, formal headings, and some publication styles.
It depends on the target format. Programming cases like camelCase and snake_case strip out punctuation and spaces because those aren't valid in identifiers. Text cases like Title Case and Sentence case leave your punctuation alone — commas, periods, and quotes all stay put. The tool is smart about which rules apply to which format.
Yep. Paste a list of variable names, headings, or whatever — each line gets converted independently according to the selected case. This is great for batch-renaming operations, like converting a column of camelCase API field names to snake_case for a Python migration.

Client-Side Sandbox Security Verification

Zero server transmission. All processing runs entirely within your browser's JavaScript sandbox using native browser-compiled APIs. 0% of your data payloads ever cross an external server boundary, origin log, or third-party endpoint.

Browser-native compilation. Operations like JSON.parse(), btoa()/atob(), encodeURIComponent(), and the Intl API are executed by the browser engine itself (V8, SpiderMonkey, or JavaScriptCore) — no WebAssembly payloads, no remote execution, no server-side eval.

Independently verifiable. Open your browser's DevTools > Network tab while using any tool. You will see zero outbound requests containing your data. This is a verifiable, auditable privacy architecture.