Text Case Converter

Overview

The case converter transforms input text into all 12 common programming naming formats simultaneously — camelCase, PascalCase, snake_case, and more — each with its own copy button. Type once and get every format instantly; no need to repeat the same operation per language. All conversion runs locally in the browser.

All 12 formats with real output

Using hello world foo as input:

camelCase         → helloWorldFoo
PascalCase        → HelloWorldFoo
snake_case        → hello_world_foo
CONSTANT_CASE     → HELLO_WORLD_FOO
kebab-case        → hello-world-foo
Train-Case        → Hello-World-Foo
Pascal_Snake_Case → Hello_World_Foo
dot.case          → hello.world.foo
path/case         → hello/world/foo
Capital Case      → Hello World Foo
Sentence case     → Hello world foo
no case           → hello world foo

Which format belongs where

Code identifiers

  • camelCase — JS/TS variables, function names, JSON keys
  • PascalCase — class names, React components, TypeScript types
  • snake_case — Python variables/functions, database columns, Ruby methods
  • CONSTANT_CASE — environment variables, config constants, enum values

Paths and separators

  • kebab-case — URL slugs, CSS class names, HTML custom attributes, filenames
  • Train-Case — HTTP header fields (e.g., Content-Type)
  • dot.case — Java/Kotlin package names, config property paths
  • path/case — directory paths, URL path segments

How word boundaries are detected

The tool reads existing separators to identify words. These all produce the same split result:

  • Space-separated: user name id
  • camelCase input: userNameId
  • Underscore: user_name_id
  • Hyphen: user-name-id
  • Mixed: userName-id_test

A plain lowercase string with no separators — like usernameid — cannot be split automatically. The tool treats it as a single word and outputs it as one unit. Make sure your input has at least one separator for multi-word conversions to work correctly.

Common conversion workflows

Converting a database column name to a JSON key for the frontend:

user_created_at  →  userCreatedAt

Generating a URL-safe slug from a REST endpoint name:

GetUserProfile  →  get-user-profile

Turning a config constant into a Java property path:

DATABASE_HOST  →  database.host