{}DevStringToolsAll tools
Blog/

Case Converter Online: Transform Text Between 8 Naming Styles Instantly

Free case converter online tool with 8 modes: camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, and more. Includes API naming, database column, and CSS class examples.

case convertertext transformationcamelcasesnakecasenaming conventions

Every developer has wasted time manually converting variable names between formats. You're working on an API endpoint and need to transform user_profile_data into userProfileData for JavaScript. Or you're setting up a database and need to convert FirstName into first_name for PostgreSQL columns.

Manual conversion is error-prone and tedious—especially with long names. The case converter online tool handles all 8 naming conventions in one click.

All 8 Case Conversion Modes Explained

The tool converts between these formats:

Input camelCase PascalCase snake_case kebab-case
hello world helloWorld HelloWorld hello_world hello-world
user id userId UserId user_id user-id
first name firstName FirstName first_name first-name

Additional modes:

  • CONSTANT_CASE: HELLO_WORLD — for environment variables, enum values
  • Title Case: Hello World — for headings, proper nouns
  • lower case: helloworld — all lowercase, no spaces
  • UPPER CASE: HELLOWORLD — all uppercase, no spaces

Real-World Use Cases

API Naming Conventions

JavaScript APIs use camelCase for variables and methods:

Before:

first_name
last_name
email_address
created_at
is_active

After (camelCase):

firstName
lastName
emailAddress
createdAt
isActive

Python REST APIs use snake_case:

After (snake_case):

first_name
last_name
email_address
created_at
is_active

Database Column Naming

PostgreSQL and MySQL convention is snake_case:

Before:

FirstName
LastName
EmailAddress
CreatedAt
IsActive

After (snake_case):

first_name
last_name
email_address
created_at
is_active

CSS Class Naming

CSS frameworks like Tailwind use kebab-case:

Before:

cardContainer
headerSection
footerWidget
primaryButton

After (kebab-case):

card-container
header-section
footer-widget
primary-button

JavaScript Constants

Environment variables and config constants use SCREAMING_SNAKE_CASE:

Before:

database host
api key
max retries

After (CONSTANT_CASE):

DATABASE_HOST
API_KEY
MAX_RETRIES

FAQ

How does the tool detect what format my text is in? The tool analyzes your input and intelligently converts to the target format. For best results, use consistent spacing in your input (e.g., "first name" with a space).

Can I convert multiple lines at once? Yes. Paste a list of names, select your target format, and convert them all in one operation.

Does it handle acronyms like "HTML" or "API"? Yes. The tool preserves common acronym patterns. For example, "api endpoint" becomes apiEndpoint (not aPIEndpoint).

Related Tools