DevFlow logoDevFlow
ToolsPipelinesExploreDocsPricing
⌘F
DashboardPipeline BuilderAnalytics

Try Pro — Free 7 days

No credit card required

Text Case Converter Online — camelCase, snake_case, kebab-case & 20 More

How to Text Case Converter Online

  1. 1

    Paste or type your source text into the input area on the left — any case format is accepted.

  2. 2

    The tool tokenises the input, splitting on whitespace, underscores, hyphens, dots, slashes, and camelCase / PascalCase boundaries.

  3. 3

    All 20 case formats are computed instantly from the normalised token list.

  4. 4

    Smart Detect identifies your input case and highlights the corresponding result card.

  5. 5

    Click any result card to select it as your primary conversion, then copy with one click.

  6. 6

    Use Batch mode (⌘⇧B) to convert a full list of phrases in one operation.

  7. 7

    Share results via the Share button — your input is gzip-compressed and stored in the URL.

Text Case Converter Features

  • ✓

    20 case formats: camelCase, PascalCase, snake_case, UPPER_SNAKE_CASE, kebab-case, UPPER-KEBAB-CASE, CONSTANT_CASE, dot.case, path/case, Title Case, Sentence case, lowercase, UPPERCASE, Capital Words, aLtErNaTiNg, iNVERSE, COBOL-CASE, Train-Case, flatcase, and SpOnGeBoB.

  • ✓

    Smart case detection automatically identifies your input format and highlights the matching result card.

  • ✓

    Live preview — converts as you type with 150ms debounce. Toggle live mode off for manual control.

  • ✓

    Batch mode (⌘⇧B) with transformation queue: chain Trim, Convert, Prefix, and Suffix steps.

  • ✓

    Stats bar: character count, word count, line count, and byte size shown in real time.

  • ✓

    One-click copy button on every result card with a 2-second confirmation tick.

  • ✓

    URL sharing: gzip-compresses your input into a shareable URL parameter.

  • ✓

    Runs entirely in your browser — no text is ever sent to a server.

  • ✓

    Keyboard shortcuts: ⌘↵ Run, ⌘⇧B Batch, ⌘⇧C Copy selected, ⌘⇧K Clear, ⌘⇧L Toggle live mode.

Frequently Asked Questions

What is camelCase and when should I use it?
camelCase writes compound words with no spaces, each word after the first starting with an uppercase letter: helloWorldFoo. It's the standard naming convention for variables and functions in JavaScript, TypeScript, Java, C#, and Swift. Use it for local variables, object properties, and function parameters.
What is the difference between snake_case and CONSTANT_CASE?
snake_case writes words separated by underscores in all lowercase: hello_world. CONSTANT_CASE (also called SCREAMING_SNAKE_CASE) uses all uppercase letters: HELLO_WORLD. In Python and Ruby, snake_case is the standard for variable and function names. CONSTANT_CASE is used for constants and environment variable names in most languages.
What is kebab-case used for?
kebab-case uses lowercase words joined by hyphens: hello-world-foo. It's the standard for URL slugs, HTML attributes, CSS class names, CSS custom properties (--primary-color), HTML file names, and npm package names. It's also used in YAML configuration keys and GitHub Actions workflow files.
What is PascalCase used for?
PascalCase (also called UpperCamelCase) capitalises the first letter of every word with no separators: HelloWorldFoo. It's the convention for class names and constructor functions in JavaScript/TypeScript, component names in React, type and interface names in TypeScript, and class names in C#, Java, and Python.
What is Title Case and how does it differ from Capital Words?
Title Case follows AP/Chicago style: major words are capitalised while short function words (a, an, the, and, but, or, in, of, etc.) are lowercase unless they're the first or last word — e.g., 'The Quick Brown Fox Jumps over the Lazy Dog'. Capital Words is simpler: every single word is capitalised regardless of its grammatical role — e.g., 'The Quick Brown Fox Jumps Over The Lazy Dog'. Use Title Case for book titles, headlines, and article titles; use Capital Words for UI labels and navigation items.
Can I convert multiple strings at once?
Yes — use the Batch mode (⌘⇧B). Enter one phrase per line in the batch input area, choose your target case, and all lines are converted simultaneously. The output preserves line order and handles empty lines gracefully. Ideal for renaming database columns, slugifying a list of blog post titles, or converting a set of variable names.
How does Smart Detect work?
When you paste or type text, the tool uses pattern matching to identify the most likely case of your input — checking for camelCase boundaries, underscore separators, hyphen separators, dot separators, and capitalisation patterns. The detected case is shown as a highlighted badge. When the input is ambiguous (e.g., plain lowercase words), the detection returns null.
Does this tool work offline?
All conversions run entirely in your browser using JavaScript. No data is ever sent to a server. The tool works offline as long as the page is already loaded.
What is COBOL-CASE and who uses it?
COBOL-CASE writes hyphen-separated ALL-UPPERCASE words: HELLO-WORLD-FOO. It originated in COBOL programming and is still used in mainframe codebases, COBOL field names, and IBM AS/400 programs. It's structurally identical to UPPER-KEBAB-CASE.
What is Train-Case?
Train-Case capitalises the first letter of each word and joins them with hyphens: Hello-World-Foo. It's used in HTTP header names (Content-Type, Accept-Language, Cache-Control) and some Ruby on Rails conventions.

Related Developer Tools

  • Base64 Encode/DecodeEncode and decode Base64 strings, files, and data URIs instantly.
  • URL Encoder/DecoderEncode, decode, and parse URLs and query strings instantly.
  • Text Diff CheckerCompare two text blocks and highlight exactly what changed.
  • Regex TesterTest, debug, and explain regular expressions with real-time match highlighting.