JSONHack
Validator · Formatter · Base64
Text Tool

Text Case Converter

📅Last updated:

Convert any text to camelCase, PascalCase, snake_case, kebab-case, UPPER CASE, lower case, Title Case, Sentence case, and more — all at once. Click any result card to copy that format instantly.

Input Text
Type or paste any text — results update as you type
camelCase
helloWorldExample
PascalCase
HelloWorldExample
snake_case
hello_world_example
kebab-case
hello-world-example
UPPER CASE
HELLO WORLD EXAMPLE
lower case
hello world example
Title Case
Hello World Example
Sentence case
Hello world example
CONSTANT_CASE
HELLO_WORLD_EXAMPLE
dot.case
hello.world.example
path/case
hello/world/example
aLtErNaTiNg CaSe
hElLo WoRlD

Case Format Reference

camelCase

First word lowercase, subsequent words capitalized. Used in JavaScript variables, JSON keys, and most programming languages.

PascalCase

Every word capitalized. Used for class names, React components, TypeScript interfaces, and C# identifiers.

snake_case

Words separated by underscores, all lowercase. Standard in Python, Ruby, SQL column names, and file names.

kebab-case

Words separated by hyphens, all lowercase. Used in CSS class names, HTML attributes, URL slugs, and file names.

CONSTANT_CASE

All uppercase with underscores. Used for constants and environment variables in most languages.

Title Case

Every word capitalized. Used in headings, titles, button labels, and navigation items.

When to Use Each Case in Development

Working with JSON keys?

Format and validate your JSON after converting key names with JSONHack.

Open JSON Formatter →

Why Text Case Conversion Matters in Development

Consistent naming conventions are one of the most important aspects of writing clean, maintainable code. Different programming languages, frameworks, and contexts have established conventions for how identifiers should be formatted. Using the wrong case in the wrong context can cause bugs, failed API calls, and broken database queries. A text case converter helps you quickly transform text between formats without manual editing.

Case Conventions by Language and Context

JavaScript / TypeScript

  • camelCase — variables, functions, object keys
  • PascalCase — classes, React components, interfaces
  • CONSTANT_CASE — constants and enum values
  • kebab-case — CSS class names, file names

Python

  • snake_case — variables, functions, module names
  • PascalCase — class names
  • CONSTANT_CASE — module-level constants
  • kebab-case — package names on PyPI

Databases / SQL

  • snake_case — table names, column names (PostgreSQL, MySQL)
  • PascalCase — table names in some ORMs
  • UPPER_CASE — SQL keywords by convention

URLs / Web

  • kebab-case — URL slugs, route paths, HTML IDs
  • snake_case — some API query parameters
  • dot.case — configuration keys, Java packages

Converting JSON Keys Between Cases

One of the most common use cases for a text case converter is transforming JSON key names between different conventions. For example, a Python backend might return first_name in snake_case, but your JavaScript frontend expects firstName in camelCase. Use this tool to quickly convert key names when working across different systems or languages.

Case Conversion for SEO and Content

Text case conversion is also important for content creators and SEO professionals:

Related Tools