Text Case Converter
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.
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
- camelCase — JavaScript variables, function names, JSON keys, Java methods
- PascalCase — class names, React components, TypeScript types, C# classes
- snake_case — Python variables, Ruby methods, SQL columns, file names
- kebab-case — CSS classes, HTML IDs, URL slugs, npm package names
- CONSTANT_CASE — environment variables, global constants, enum values
- dot.case — configuration keys, property paths, Java package names
Format and validate your JSON after converting key names with JSONHack.
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:
- Title Case — used for article headlines, page titles, and H1 headings
- Sentence case — used for meta descriptions, body text, and natural writing
- UPPER CASE — used for emphasis, acronyms, and call-to-action buttons
- lower case — used for email addresses, URLs, and technical identifiers
Related Tools
- JSON Formatter — format and validate JSON with properly cased keys
- JSON Escape — escape special characters in JSON strings
- URL Encoder — encode text for safe use in URLs
- HTML Escape — escape HTML special characters
- Hash Generator — generate hashes from any text