Case Converter

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

Free case converter that turns any text into camelCase, PascalCase, snake_case, CONSTANT_CASE, kebab-case, Title Case and Sentence case at once. Runs entirely in your browser — nothing is uploaded. It runs free in your browser on Gera Tools, with nothing uploaded.

Last updated Source: Gera Tools

Which cases are supported?

camelCase, PascalCase, snake_case, CONSTANT_CASE, kebab-case, Title Case, Sentence case, lower case and UPPER CASE — all generated at once from the same input.

Embed this tool

Drop this free tool into your own site or blog. It runs entirely in your visitor's browser — nothing is sent to us.

<iframe src="https://geratools.com/embed/case-converter" width="100%" height="600" style="border:1px solid #e5e7eb;border-radius:8px" title="Case Converter — GeraTools" loading="lazy"></iframe>

Convert text between every case

This tool reformats any text, identifier or phrase into nine cases at once — camelCase, PascalCase, snake_case, CONSTANT_CASE, kebab-case, Title Case, Sentence case, lower case and UPPER CASE. It is built for developers renaming variables between language conventions, writers fixing capitalisation, and anyone converting a heading into a URL-ready or code-ready form without retyping it.

How it works

Your input is first tokenised into words. The converter inserts a boundary between a lowercase letter and an uppercase one (so userName splits into user and Name), then splits on every non-alphanumeric character — spaces, hyphens, underscores and punctuation. Because of this, you can paste an identifier in any existing style and reformat it into another. Each case then rejoins those words with its own separator and capitalisation rule.

Example

Paste getUserProfile-data and you get every form at once:

CaseOutput
camelCasegetUserProfileData
PascalCaseGetUserProfileData
snake_caseget_user_profile_data
CONSTANT_CASEGET_USER_PROFILE_DATA
kebab-caseget-user-profile-data
Title CaseGet User Profile Data
Sentence caseGet user profile data

Click Copy next to whichever one you need. Every conversion happens in your browser; nothing is uploaded.

When each case is the right choice

The conversion that matters depends on your context. Here is a quick guide:

CaseUse for
camelCaseJavaScript/TypeScript variable and function names (getUserData)
PascalCaseClass names, React components, TypeScript types (UserProfile)
snake_casePython variables and functions, database column names (user_name)
CONSTANT_CASEEnvironment variables, compile-time constants (API_BASE_URL)
kebab-caseURL slugs, CSS class names, HTML data- attributes (user-profile)
Title CaseArticle headings, page titles, button labels
Sentence caseBody copy, caption text, UI labels that read as prose

Common mistakes this tool prevents

Cross-language refactoring. Pasting a Python snake_case function name into a TypeScript file is a common slip. Paste the name here and copy the camelCase result directly — one click, no manual editing.

Mixed-style identifiers in APIs. REST APIs often return snake_case JSON keys that need to become camelCase properties in JavaScript. This tool converts an entire list of field names at once if you paste them line by line.

CMS and URL slugs. Heading text like “Top 10 Tips for New Developers” rarely comes out of a CMS as a clean URL. Paste it and the kebab-case output gives you top-10-tips-for-new-developers ready to paste into a route or file name.

Caps Lock accidents. Paste a sentence typed IN ALL CAPS and use the Sentence case or lower case output to recover clean text instantly.