Text

How to Convert Text Case

Published June 12, 2026 · 3 min read · By DownloadReels

Programming conventions use different “cases” for names: camelCase for variables, PascalCase for classes, snake_case in Python, kebab-case in URLs and CSS, and CONSTANT_CASE for constants. Converting between them by hand is tedious. To convert text case, paste it into a case converter and copy the form you need. Here is what each case is for.

1
Paste your text

Enter a phrase or an existing identifier in any style.

2
See every case

All conventions are generated at once and update as you type.

3
Pick the convention

Choose camelCase, snake_case, kebab-case and so on.

4
Copy

Each result has its own copy button.

Which case goes where?

camelCase — JavaScript/Java variables. PascalCase — class and component names. snake_case — Python variables and SQL columns. kebab-case — URLs, CSS classes and file names. CONSTANT_CASE — constants and env vars. A case converter shows all of them so you can match the convention of the code you’re in.

Converting existing identifiers

A good converter splits on spaces, underscores, hyphens and capital-letter boundaries, so myVariableName, my_variable_name and my-variable-name all convert cleanly between styles. Making a URL slug? The kebab-case output is exactly a slug.

Tip: Use kebab-case output as a ready-made URL slug, and CONSTANT_CASE for environment variable names — two quick wins beyond just renaming variables.

Convert text case now

Get camelCase, snake_case, kebab-case and more at once — free, in your browser.

Open the Case Converter →

Frequently Asked Questions

What is camelCase vs snake_case?

camelCase joins words with capitals (myVariable); snake_case joins them with underscores (my_variable). Different languages prefer different ones.

Can it convert an existing variable name?

Yes — it detects word boundaries in camelCase, snake_case and kebab-case input, so any style converts to any other.

Is my text uploaded?

No — conversion runs in your browser.

Related guides