digtools
🔠
text case converter,

Text Case Converter

Batch convert between 12 naming conventions like camelCase and snake_case.

Batch Convert
All 12 cases
🤖
Auto-Detect
Recognizes case
📋
1-Click
Copy instantly
Detected Case: -

* Special characters (e.g., @, #) are not recognized as delimiters and will be preserved.

about,

About this tool

The Text Case Converter is an essential utility for developers and writers to easily switch between different text naming conventions.

Instead of manually rewriting variables, just paste your text to instantly see it converted into 12 different formats including camelCase, snake_case, kebab-case, and PascalCase.

howto,

How to use

1. Input Text

Type or paste your text or variable name into the input box.

2. Auto-Detection

The tool will automatically attempt to guess your current text casing and generate all format variations in the list below.

3. Copy Output

Click on any of the generated formats below to instantly copy it to your clipboard. You can directly paste it into your editor.

glossary,

Glossary of Naming Conventions

camelCase
Words are joined without spaces, and each word except the first begins with a capital letter. (e.g. myVariableName). Standard in JavaScript and similar languages.
snake_case
Words are separated by underscores. Used widely in Python and database architectures. (e.g. my_variable_name).
kebab-case
Words are separated by hyphens. Standard for URLs and HTML/CSS classes. (e.g. my-variable-name).
PascalCase
Similar to camelCase, but the first letter is also capitalized. Often used for class names in Object-Oriented Programming. (e.g. MyVariableName).
UPPER_SNAKE_CASE
All uppercase letters separated by underscores. Used for constant variables in many languages. (e.g. MAX_LIMIT).
faq,

Frequently Asked Questions (FAQ)

Can I convert multiple lines of text?

Currently, the tool parses the entire input as a single phrase to split it into words. It's best suited for single variable names, sentences, or strings rather than multi-line texts.

Does it work with non-English characters?

The case conversion logic primarily relies on the English alphabet (A-Z, a-z) to detect boundaries like camelCase. Non-alphabetical characters will be treated as plain text or delimiters, so the conversion might not be perfect for them.

Is the data sent to a server?

No. The conversion happens instantly in your browser using JavaScript. No data is stored or transmitted, so you can safely use it with confidential variable names or system data.

scenes,

Use Cases

Programming & Coding

Quickly convert a JSON key from `snake_case` to `camelCase` for your JavaScript frontend.

CSS & HTML

Change a component name from `PascalCase` to `kebab-case` to use as a CSS class name.

Database Architecture

Format human-readable titles into `snake_case` column names for your SQL tables.

Content Writing

Fix the capitalization of blog post titles using the "Title Case" output.

Send Feedback

Please let us know your thoughts to help us improve the tool.

Disclaimer

The tools provided on this site are completely free to use, but please use them at your own risk. We make no guarantees regarding the accuracy, completeness, or safety of any calculation results, conversion results, or generated data. Please be aware that the operator assumes no responsibility for any damages or troubles caused by the use of these tools. Most tools process files and calculations locally in your browser, meaning your inputted data is neither sent to nor stored on our servers.