Reconnecting… Connection lost. Reload Session expired. Reload

Text Case Converter

Enter any text and get instant conversions to all common naming conventions used in code.

By Pankaj Kumar · DevToolsHub· Last updated Jun 2026
Input Section
Input text
Output Section
camelCase

helloWorldExample

PascalCase

HelloWorldExample

snake_case

hello_world_example

kebab-case

hello-world-example

UPPER_SNAKE

HELLO_WORLD_EXAMPLE

What is a text case converter?

A text case converter transforms text between the naming conventions used in programming. Every major language has a preferred convention for naming variables, functions, classes, and constants — and mixing conventions in a codebase makes code harder to read and violates style guides. This tool converts any phrase or identifier into all five common cases simultaneously so you can pick the one you need.

Naming conventions by language and context

The choice of naming convention is not arbitrary — each language community has established conventions that compilers, linters, and developers all expect:

  • camelCase — first word lowercase, subsequent words capitalised: getUserName. Used for: JavaScript/TypeScript variables and functions, Java variables and methods, Swift variables and functions, JSON property names in APIs.
  • PascalCase (UpperCamelCase) — every word capitalised: GetUserName. Used for: C# classes, methods, and properties (Microsoft's .NET conventions), TypeScript interfaces and types, React component names, Python class names.
  • snake_case — all lowercase, words separated by underscores: get_user_name. Used for: Python variables, functions, and module names (PEP 8), Ruby methods and variables, SQL column names, Django model fields, C/C++ function names in system libraries.
  • kebab-case — all lowercase, words separated by hyphens: get-user-name. Used for: CSS class names and custom properties, HTML attributes, URL slugs, npm package names, command-line flags.
  • UPPER_SNAKE_CASE (SCREAMING_SNAKE_CASE) — all uppercase, words separated by underscores: GET_USER_NAME. Used for: constants in Python (MAX_RETRIES = 3), environment variables (DATABASE_URL), C/C++ preprocessor macros, Java constants (static final).

How to use this tool

  1. Type or paste your text into the input field — it can be in any case format or plain words.
  2. All five case formats update instantly in the output panel.
  3. Click the copy icon next to the format you need.

Consistency matters more than preference

In a team project, consistent naming is more important than which convention you choose. Inconsistent naming — mixing getUserName with get_user_name in the same codebase — slows down code reading, makes autocomplete less useful, and causes subtle bugs when field names need to match an external format like a database schema or JSON API. Most teams enforce naming conventions automatically using linters: ESLint for JavaScript/TypeScript, pylint or flake8 for Python, dotnet format for C#, and stylelint for CSS.

FAQ
Does it handle camelCase or PascalCase input?

Yes. The converter splits on camelCase boundaries, underscores, hyphens, and spaces.

What about acronyms like URL or HTTP?

Acronyms in ALL CAPS are treated as a single word — HTTPSRequest becomes httpsrequest in camelCase.

What is the difference between camelCase and PascalCase?

In camelCase, the first word is lowercase and subsequent words are capitalised (myVariableName). In PascalCase, every word starts with a capital letter (MyVariableName).

When should I use snake_case?

snake_case is the standard in Python for variables and functions, and in SQL for column names. It is also common in Ruby and some JavaScript codebases.

What is kebab-case used for?

kebab-case (words-joined-with-hyphens) is used in CSS class names, HTML attributes, URL slugs, and some configuration file keys.

Can the converter handle multi-word input?

Yes. Type words separated by spaces, underscores, or hyphens and the converter will correctly identify word boundaries and apply the target case.