JSON Parser

Case Converter — camelCase, snake_case, kebab-case & More

Type or paste text and see it in eleven styles at once, each with its own copy button. Multi-line input is converted line by line, which makes it quick to rename a list of variables, columns or headings. Everything happens in your browser.

How to convert text case

  1. Enter text in the Input box. It can be a phrase (user profile settings page) or an identifier in any style (userProfileSettingsPage).
  2. Find the style you need in All cases and click its copy button.
  3. For several names at once, put one per line. Each line is converted separately.

Every case, from one input

Using the input user profile settings page:

StyleResultTypically used for
camelCaseuserProfileSettingsPageJavaScript, Java and JSON variable and property names
PascalCaseUserProfileSettingsPageClass and component names (C#, Go exports, React)
snake_caseuser_profile_settings_pagePython, Ruby, Rust and SQL columns
CONSTANT_CASEUSER_PROFILE_SETTINGS_PAGEConstants and environment variables
kebab-caseuser-profile-settings-pageURLs, CSS classes and file names
dot.caseuser.profile.settings.pageConfig keys and property paths
path/caseuser/profile/settings/pageFolder and route paths
Title CaseUser Profile Settings PageHeadings and titles
Sentence caseUser profile settings pageNormal sentences and UI labels
UPPERCASE / lowercaseUSER PROFILE… / user profile…Emphasis, normalizing input

How words are detected

The converter splits your text into words at spaces, punctuation and underscores, and also at the boundary between a lowercase letter and a capital. So userProfile becomes user profile, and an acronym followed by a word, like XMLHttpRequest, becomes XML Http Request. That is why you can convert from any style to any other in one step. Digits stay with the word they appear in.

Related tools

Generate typed code with consistent naming from JSON using JSON to TypeScript, JSON to Java or JSON to Go. Percent-encode names for URLs with URL Encode.

Frequently asked questions

What is the difference between camelCase and PascalCase?
Both join words without separators and capitalize each word. camelCase starts with a lowercase letter (userName), PascalCase starts with an uppercase letter (UserName).
When do I use snake_case or kebab-case?
snake_case is common in Python, Ruby and SQL columns. kebab-case is common in URLs, CSS class names and file names. CONSTANT_CASE is used for constants and environment variables.
Does it work on several lines at once?
Yes. Each line is converted separately, so you can convert a whole list in one step. Everything runs in your browser — nothing you enter is uploaded to a server.
Handles JSON files up to 20MB smoothly