Skip to main content

    Case Converter

    Convert text between UPPERCASE, lowercase, Title Case, camelCase, snake_case, and more. Free and instant.

    No signup. 100% private. Processed in your browser.

    Paste your text and click any case button to convert instantly. Supports 10 different case styles.

    0 characters

    Why Text Case Matters More Than You Think

    Text case isn't just about aesthetics — it's about conventions, readability, and consistency. In programming, the wrong case breaks your code: a variable named "userName" is completely different from "username" in case-sensitive languages. In writing, case signals intent: ALL CAPS reads as shouting, Title Case looks professional, and sentence case feels natural.

    Naming conventions exist for a reason. JavaScript uses camelCase for variables and PascalCase for classes. Python uses snake_case for functions and SCREAMING_SNAKE_CASE for constants. CSS uses kebab-case for properties. Mixing conventions makes code harder to read and maintain.

    This converter handles all the common cases instantly. Paste your text, pick the target case, and copy the result. It handles edge cases like acronyms, numbers, and punctuation that trip up manual conversion.

    Case Types Explained

    CaseExampleUsed In
    camelCasemyVariableNameJavaScript/TypeScript variables, Java methods
    PascalCaseMyVariableNameReact components, C# classes, TypeScript types
    snake_casemy_variable_namePython, Ruby, Rust, database columns
    SCREAMING_SNAKEMY_VARIABLE_NAMEConstants in most languages, environment variables
    kebab-casemy-variable-nameCSS properties, HTML attributes, URL slugs
    Title CaseMy Variable NameHeadings, titles, UI labels
    Sentence caseMy variable nameParagraphs, descriptions, normal text
    UPPER CASEMY VARIABLE NAMEEmphasis, headers, abbreviations
    lower casemy variable nameNormalisation, search, comparison
    dot.casemy.variable.nameJava packages, config keys, file extensions

    What this means for you: When converting between cases, the tool splits your text into words first, then reassembles with the target convention. This means "myVariableName" correctly converts to "my_variable_name" — it recognises word boundaries in any source format.

    Naming Convention Best Practices

    Be consistent within a project

    Pick one convention per context and stick to it. If your API returns snake_case, use snake_case for those fields throughout. Mixing conventions in the same file is a code smell.

    Follow language conventions

    Every language has established norms. Python's PEP 8 says snake_case. JavaScript's community prefers camelCase. Fighting these conventions makes your code harder for other developers to read.

    Handle acronyms carefully

    Is it "XMLParser" or "XmlParser"? "getHTTPResponse" or "getHttpResponse"? Most style guides prefer treating acronyms as words: XmlParser, getHttpResponse. It's more readable and converts between cases more predictably.

    Use case to signal intent

    SCREAMING_SNAKE signals "don't change this" (constants). PascalCase signals "this is a class/component." camelCase signals "this is a variable/function." The case itself communicates meaning to other developers.

    Case Conversion in Code

    Most languages have built-in methods for basic case changes, but converting between naming conventions (camelCase → snake_case) usually requires a library or custom function:

    LanguageBasic CaseNaming Convention
    JavaScriptstr.toLowerCase()lodash: _.camelCase(str)
    Pythonstr.upper() / str.title()inflection.underscore(str)
    Rubystr.downcase / str.upcasestr.underscore / str.camelize
    PHPstrtolower($str)Str::camel($str) (Laravel)
    SQLUPPER(col) / LOWER(col)No built-in support

    What this means for you: For one-off conversions, this tool is faster than writing code. For bulk transformations in a codebase, use your editor's find-and-replace with regex, or a dedicated rename refactoring tool.

    Related Tools

    How to use this tool

    1

    Paste or type your text into the input box

    2

    Click the desired case style button

    3

    Copy the converted text to your clipboard

    Common uses

    • Converting headings to Title Case for blog posts
    • Generating UPPER CASE text for design mockups
    • Creating camelCase or snake_case variable names
    • Cleaning up ALL CAPS text from legacy data

    Share this tool

    Frequently Asked Questions