Online String Case Converter
Free online case converter to transform text between camelCase, PascalCase, snake_case, UPPERCASE, lowercase, and Title Case.
helloWorldString
hello_world_string
hello-world-string
HelloWorldString
HELLO WORLD STRING
hello world string
Hello World String
HELLO_WORLD_STRING
About String Case Lab
String Case Lab is a free, instant developer utility designed to transform text between standard programming variable conventions. Convert code identifiers, database column names, and URL slugs securely within your browser.
camelCase
Capitalizes the first letter of each word except the first. Standard for JavaScript, TypeScript, and JSON keys.
PascalCase
Capitalizes the first letter of every word. Used for React component names, C# classes, and Java types.
snake_case
Replaces spaces with underscores in lowercase. Standard for Python variables, Rust identifiers, and SQL database columns.
kebab-case
Replaces spaces with hyphens in lowercase. Standard for URL web slugs, CSS class names, and HTML attributes.
CONSTANT_CASE
Converts text to uppercase with underscore separators. Standard for global constants and environment variables.
Title Case
Capitalizes the principal words in a title. Used for blog headlines, article titles, and UI menu items.
About the String Case Converter
The String Case Converter rewrites any identifier or sentence into the naming convention your language or style guide expects. Paste a variable name, a column name, or a whole line of prose and get camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case, sentence case, UPPERCASE and lowercase variants side by side. It handles mixed delimiters, acronyms and existing casing, so converting "user_ID_token" to "userIdToken" takes one paste instead of a regex.
How to use the String Case Converter
- Paste or type the text you want to convert into the input box.
- Every supported case format is generated instantly as you type.
- Click the copy button next to the format you need.
Frequently asked questions
What is the difference between camelCase and PascalCase?
Both join words without separators, but camelCase starts with a lowercase letter (userName) while PascalCase capitalises the first letter too (UserName). camelCase is conventional for variables and functions in JavaScript and Java; PascalCase is conventional for classes, types and React components.
When should I use snake_case versus kebab-case?
snake_case uses underscores and is standard in Python, Ruby and SQL column names. kebab-case uses hyphens and is standard for URL slugs, CSS class names and HTML attributes, because hyphens are not valid in most identifiers but are safe in URLs.
Is my text uploaded to a server?
No. Every conversion runs in JavaScript inside your browser tab. Nothing you type is transmitted, logged or stored, so it is safe to paste internal identifiers and schema names.
Related tools
- Encoder & DecoderFree online URL encoder, Base64 encoder/decoder and HTML entity escaper. Encode and decode strings instantly and privately in your browser.
- Code FormatterFree online code beautifier for JSON, SQL, XML, HTML and CSS. Format minified code into readable, indented output instantly and privately.
- Regex TesterTest regular expressions against sample text with live match highlighting, capture groups and flag control. Free, private and instant.
String Case Converter is free to use with no account, no ads and no usage limits. Every calculation runs locally in your browser, so nothing you paste is ever uploaded. See our privacy policy.