Skip to tool

Case Converter

Convert text to camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case, UPPERCASE, lowercase and a URL slug, all at once.

Runs in your browser — your input is processed on this device and never uploaded.

Input

Identifier or phrase to convert. Maximum 64 KiB. Word-aware cases split on case, space, and symbol boundaries. Slug keeps alphanumerics only.

Result

Results appear here.

About this tool

On this page

What is a case converter?

A case converter rewrites text in a different letter case or naming convention. Programming languages disagree about how to write a name made of several words, so the same name turns up as camelCase, PascalCase, snake_case, kebab-case or CONSTANT_CASE depending on where it lives.

JavaScript uses camelCase, Go uses PascalCase for exported names and C# for public ones, Python uses snake_case, CSS and URLs use kebab-case, and constants are often CONSTANT_CASE. Headlines want Title Case.

How to use the case converter

Paste an identifier or a short phrase, up to 64 KiB, and the tool returns every common form at once:

camelCase and PascalCase
Word boundaries marked by capitals.
snake_case and kebab-case
Lowercase words joined by underscores or hyphens.
CONSTANT_CASE
Uppercase words joined by underscores.
Slug
Lowercase letters and digits joined by single hyphens, ready for a URL path. Punctuation is dropped instead of becoming a word break.
Title Case and Sentence case
Capitalized for headings, or for an ordinary sentence.
UPPERCASE and lowercase
These change only the letters and keep spaces and punctuation as they were.

Word-aware forms split on changes of case, spaces and symbols, then rejoin the words. That is why getUserID becomes get_user_id rather than getuserid.

Why convert to every case at once

Most converters ask you to pick a target first, and then you click again when the codebase wanted the other convention. Here you paste once and copy the field you need.

Use the slug for a URL path or a file name. Use kebab-case when you want punctuation treated as a word break. Use UPPERCASE or lowercase when you only want the letters changed and the rest of the text left alone.

Case converter alternatives

Snake Case Converter, Alternating Case Converter and Text Flipper each do one thing. Use the snake case one when snake_case is all you need, and this page when you want the full set side by side.

Inside a code repository, your editor's rename refactoring is the right tool, because it updates every reference. This page is for text that is not in a file yet.

Warning

Do not use the slug as a security check. It is a display transform, not sanitizing of a path or a file name on disk.

Things to know about case conversion

Acronyms are where every case library shows its seams. HTTPServer has no single correct split, so check the output when a run of capitals matters.

Slug and kebab-case usually agree but not always. Hello, World! becomes hello-world in both, but getUserID becomes getuserid as a slug and get-user-id as kebab-case.

Round trips are not guaranteed. Convert to snake_case and back to camelCase and an acronym may not come back the way it started.

Explore tools with similar capabilities.

Browse

Find similar tools by category or tag.