Text to Binary Converter
Convert text and ASCII characters to binary code.
Convert text between camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case, and more, all updating instantly as you type. Everything runs 100% client-side in your browser.
Type any phrase and every case format updates instantly. Click the copy icon on any card. Conversion runs entirely in your browser.
Case conventions exist because most programming languages forbid spaces in identifiers, so multi-word names need some other way of showing where one word ends and the next begins. Over time each ecosystem settled on its own answer, and the differences are now strong enough that using the wrong one reads as a mistake even when the code compiles fine.
| Format | Example | Typical use |
|---|---|---|
| camelCase | userName | JavaScript and Java variables, method names, JSON keys |
| PascalCase | UserName | Class and type names, React components, C# members |
| snake_case | user_name | Python identifiers, Ruby, SQL column names |
| SCREAMING_SNAKE_CASE | USER_NAME | Constants and environment variables |
| kebab-case | user-name | URLs, CSS classes, HTML attributes, npm package names |
| dot.case | user.name | Config keys, namespaces, feature flag paths |
| Train-Case | User-Name | HTTP header names such as Content-Type |
Following the local convention is not pedantry. Linters enforce it, code review flags it, and in at least one popular language it changes the meaning of your code.
Search engines treat a hyphen as a word separator and an underscore as a word joiner. That single difference is the reason kebab-case is the standard for URL slugs.
There is a practical reason too: many web servers and file systems differ in how they treat letter case, so an all lowercase hyphenated path avoids duplicate URLs that resolve to the same page.
Splitting a name into words is easy when every word is lowercase with a single capital. It stops being easy the moment an acronym appears, because a run of consecutive capitals gives the parser no obvious boundary.
The usual heuristic is that a capital following another capital starts a new word only when the character after it is lowercase, which correctly turns HTTPResponse into HTTP plus Response. Style guides diverge on the output: Go recommends keeping acronyms fully capitalised (userID, ServeHTTP), while Java and much of the JavaScript world prefer treating them as ordinary words (userId, XmlParser). Pick one rule per codebase and let the linter enforce it, because inconsistent acronym casing is a persistent source of broken lookups when names are generated at runtime.
Renaming identifiers is usually one step in a larger cleanup. Browse the full text and developer tools collection for formatters, encoders, and converters that handle the rest of the job.
Every language and platform has its own naming conventions, so developers spend a surprising amount of time reshaping the same words between styles: a database column in snake_case, a JavaScript variable in camelCase, a class in PascalCase, a CSS selector in kebab-case, an environment variable in CONSTANT_CASE. This converter does all of that at once. Type or paste your text and it produces every supported format side by side, updating live as you edit, ready to copy. It is handy for renaming identifiers, cleaning up headings into Title Case, and normalizing inconsistent naming across a codebase. All conversion happens in your browser, so your text never leaves your device.