UT

Case Converter

Convert text between camelCase, PascalCase, snake_case, kebab-case, and more.

What Is Case Converter?

Case Converter transforms text between six popular naming conventions used in programming: camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, and dot.case. It automatically detects word boundaries in your input — whether separated by spaces, underscores, hyphens, dots, or camelCase transitions — and converts to all formats at once.

The output updates in real time as you type. This tool runs entirely in your browser — no text is sent to any server.

How to Use This Tool

1

Enter Your Text

Type a variable name, phrase, or identifier. It can be in any format — spaces, camelCase, snake_case, or any mix.

2

See All Formats

All six naming conventions appear instantly below the input. The tool detects word boundaries automatically.

3

Copy What You Need

Click Copy next to any result to copy that format, or use Copy All to copy all six formats at once.

4

Paste & Use

Paste the converted name into your code, config file, URL slug, or anywhere you need consistent naming.

Features Explained

Smart Tokenization

The tool intelligently splits input into words by detecting camelCase boundaries (myVariable → my + Variable), separators (underscores, hyphens, dots, slashes), and whitespace. It strips non-alphanumeric characters and handles Unicode letters and numbers.

Six Naming Conventions

All six common programming naming conventions are generated simultaneously: camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, and dot.case. No need to select a target format — you get all of them at once.

Real-Time Processing

The output updates instantly as you type. The tokenization and conversion are memoized for performance, so only changes to the input trigger recalculation.

Copy Individual or All

Copy any single result with its dedicated Copy button, or use Copy All to copy all six formats in a labeled list. Perfect for documentation or reference.

Who Is This Tool For?

Frontend Developers

Convert between camelCase (JavaScript), kebab-case (CSS/HTML), and PascalCase (React components) as you work across layers.

Backend Developers

Switch between snake_case (Python, Ruby, SQL) and camelCase (Java, C#) when integrating different systems.

API Designers

Ensure consistent naming across endpoints (kebab-case URLs), payloads (camelCase JSON), and databases (snake_case columns).

DevOps Engineers

Convert between CONSTANT_CASE (environment variables), kebab-case (Kubernetes resources), and dot.case (Java properties).

Technical Writers

Accurately format code identifiers in documentation by quickly converting between naming conventions.

Students

Learn and practice different naming conventions used across programming languages and frameworks.

Naming Convention Reference

ConventionExampleCommon In
camelCasemyVariableNameJavaScript, Java, TypeScript, C#
PascalCaseMyVariableNameReact components, C# classes, TypeScript types
snake_casemy_variable_namePython, Ruby, Rust, SQL, PHP
kebab-casemy-variable-nameCSS classes, HTML attributes, URLs, CLI flags
CONSTANT_CASEMY_VARIABLE_NAMEEnvironment variables, constants in most languages
dot.casemy.variable.nameJava properties, Spring config, package names

Tips for Case Conversion

Input in any format

You can type in any format — "my variable", "myVariable", "my_variable", or "my-variable" — and the tool will detect the words correctly.

Use for API consistency

When building APIs, use this tool to ensure your URL paths use kebab-case, JSON fields use camelCase, and database columns use snake_case.

Convert component names

Need a React component name? Type your description and grab the PascalCase result. Need the CSS class? Grab the kebab-case version.

Environment variables

Use CONSTANT_CASE for environment variables and configuration constants. This is a universal convention across all platforms.

Handles acronyms

Input like "XMLParser" is split at case boundaries. For best results with acronyms, separate words with spaces: "XML parser".

Copy All for documentation

Use Copy All to get a formatted list of all conventions. Paste it into your code style guide or PR description.

Privacy & Security

This tool runs 100% in your browser. Your text is never uploaded to any server. It is stored only in your browser's local storage so it persists when you refresh the page.

You can clear it at any time using the “Clear” button. No cookies are used, no analytics track your text content, and no third-party services have access to what you type.