Skip to content

Text Case Converter

Convert text between camelCase, PascalCase, snake_case, kebab-case, and more. See all conversions at once.

Input Text

Start typing to see all case conversions

What is Case Conversion?

Case conversion transforms text between different naming conventions used in programming. Each convention has specific rules for word separation and capitalization, and different languages and contexts favor different styles.

How to Use This Tool

  • Type or paste text into the input field
  • All case conversions appear simultaneously in a grid
  • Click Copy on any card to copy that specific format
  • The tool detects word boundaries from spaces, hyphens, underscores, and camelCase transitions

Common Use Cases

  • Converting variable names between JavaScript (camelCase) and Python (snake_case)
  • Generating CSS class names (kebab-case) from design specs
  • Creating environment variable names (CONSTANT_CASE)
  • Converting between API field naming conventions

Tips

  • camelCase: JavaScript/TypeScript variables and functions
  • PascalCase: React components, class names
  • snake_case: Python, Ruby, database columns
  • kebab-case: CSS classes, URL slugs
  • CONSTANT_CASE: environment variables, constants

FAQs

What is the convention for each case style?

camelCase: first word lowercase, subsequent words capitalized (JavaScript variables). PascalCase: all words capitalized (class names). snake_case: lowercase with underscores (Python, Ruby). kebab-case: lowercase with hyphens (CSS, URLs). CONSTANT_CASE: uppercase with underscores (constants).

When should I use camelCase vs snake_case?

Use camelCase for JavaScript/TypeScript variables and functions. Use snake_case for Python, Ruby, and database columns. Use PascalCase for class names and React components. Follow the conventions of your language and team.

How does the converter detect word boundaries?

The converter detects boundaries at spaces, hyphens, underscores, and transitions between lowercase and uppercase letters (camelCase splits). This means "myVariableName" correctly splits into ["my", "Variable", "Name"].

Does case conversion work with Unicode characters?

Yes. The converter handles Unicode letters including accented characters (é, ñ, ü). However, some edge cases with locale-specific casing (e.g. Turkish İ/i) may not be handled in all conversions.

What is dot.case used for?

dot.case (lowercase with dots) is used in Java package names, configuration keys (e.g. spring.datasource.url), and some file naming conventions.

Is Free Text Case Converter — camelCase, snake_case, kebab-case & More free to use?

Free Text Case Converter — camelCase, snake_case, kebab-case & More is completely free and runs in your browser.

Does Free Text Case Converter — camelCase, snake_case, kebab-case & More send my data to a server?

No. Free Text Case Converter — camelCase, snake_case, kebab-case & More processes input directly in your browser.

Do I need to create an account to use Free Text Case Converter — camelCase, snake_case, kebab-case & More?

No account is required to use Free Text Case Converter — camelCase, snake_case, kebab-case & More.

Privacy-first by design

Tool inputs are processed in your browser. Review the Privacy Policy and Terms for full details.

Related Tools

All Tools

Timestamp Converter

Convert between Unix timestamps and dates.

Open Tool →

JSON to CSV

Convert JSON arrays into downloadable CSV format.

Open Tool →

CSV to JSON

Convert CSV data to JSON format instantly.

Open Tool →

YAML ↔ JSON

Convert between YAML and JSON without leaving the browser.

Open Tool →