GT
GenTradeTools

Case Converter

Convert text between 18+ case styles including programming conventions (camelCase, snake_case) and text formats

Batch Preview
Auto Convert
Preserve Lines
textAll letters lowercasehello world
Input / Output
0 chars
0 words
1 lines
Loading editor...
0
Characters
0
Words
1
Lines
0
Uppercase
0
Lowercase
0
Undo Steps

Features

18+ Case Styles

Text, programming, and fun case conversions

Programming Cases

camelCase, PascalCase, snake_case, kebab-case

Batch Preview

See all conversions at once, click to copy

Auto Convert

Automatically convert as you change case type

Undo/Redo

Full history with 50+ step undo support

Conversion History

Access and restore previous conversions

Monaco Editor

VS Code-powered text editing experience

Quick Convert

One-click convert and copy common cases

Preserve Lines

Option to maintain line break structure

File Upload

Import text from various file formats

Statistics

Character, word, and case distribution stats

Client-Side

100% browser-based, your data stays private

Text Tools

Understanding Text Case Conventions

Text case conversion is fundamental in both writing and programming. Different contexts require different capitalization styles—from formal Title Case in headlines to technical snake_case in database columns.

Programming naming conventions vary by language and context. JavaScript typically uses camelCase for variables and PascalCase for classes. Python prefers snake_case, while CSS and URLs use kebab-case. Consistency within a codebase is crucial for maintainability.

Title Case rules are more nuanced than simply capitalizing every word. Articles (a, an, the), conjunctions, and prepositions are typically lowercase unless they begin a title. This tool follows standard English title case conventions.

Common Use Cases

Variable Naming

Convert plain text descriptions to proper variable names in camelCase, snake_case, or PascalCase.

Headlines & Titles

Format article headlines, blog titles, and headings with proper Title Case capitalization.

Database Columns

Transform human-readable names into database-friendly snake_case or CONSTANT_CASE identifiers.

URL Slugs

Generate SEO-friendly URL slugs using kebab-case from article titles or descriptions.

FAQ

What is the difference between camelCase and PascalCase?

camelCase starts with a lowercase letter (firstName), while PascalCase starts with uppercase (FirstName). Use camelCase for variables/functions and PascalCase for classes/components.

When should I use snake_case vs kebab-case?

snake_case is common in Python, Ruby, and database columns. kebab-case is used in URLs, CSS classes, and file names where underscores may cause issues.

How does Title Case handle small words?

Standard Title Case keeps articles (a, an, the), short prepositions (in, on, at), and conjunctions (and, but, or) lowercase unless they start the title.

What is CONSTANT_CASE used for?

CONSTANT_CASE (or SCREAMING_SNAKE_CASE) is used for constants and environment variables that should not change during program execution.

18+ Case Styles·100% Client-Side·Privacy First