Skip to main content

    Case Converter

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

    Free to use. Runs 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 search 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

    What case conversions are supported?
    Ten case styles: UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, and Toggle Case. Each follows the standard convention used in programming and writing.
    Is my text stored or sent anywhere?
    No. All conversions happen locally in your browser using JavaScript string methods. Your text never leaves your device, nothing is transmitted to any server.
    What's the difference between camelCase and PascalCase?
    camelCase starts with a lowercase letter (myVariableName). PascalCase starts with uppercase (MyVariableName). In most conventions, camelCase is for variables and functions, PascalCase is for classes and React components.
    When should I use snake_case vs kebab-case?
    snake_case is the convention in Python, Ruby, Rust, and SQL (column_names). kebab-case is used in CSS properties, HTML attributes, and URL slugs. They're functionally similar but belong to different ecosystems.
    What is CONSTANT_CASE?
    Also called SCREAMING_SNAKE_CASE, all uppercase with underscores between words. Used for constants in almost every language: MAX_RETRIES, API_BASE_URL, DEFAULT_TIMEOUT. It signals 'this value should not change.'
    How does the tool handle acronyms?
    Acronyms are treated as single words. 'XMLParser' in camelCase produces 'xmlparser' in snake_case (all lowercase). For cleaner conversion, consider writing 'XmlParser' instead, it splits more naturally across all case formats.
    Can I convert between programming naming conventions?
    Yes, that's one of the primary use cases. Paste a variable name in any format and convert it to another. 'getUserName' converts to 'get_user_name' (snake_case), 'get-user-name' (kebab-case), or 'GetUserName' (PascalCase).
    What is Toggle Case used for?
    Toggle case inverts every character's case: 'Hello World' becomes 'hELLO wORLD'. It's mainly used for stylistic effects or mocking text. Not commonly used in programming.
    Does Title Case handle articles and prepositions?
    This tool capitalises the first letter of every word. Strict title case (AP/Chicago style) would leave words like 'a', 'the', 'in', 'of' lowercase unless they start the title. For strict title case, manual adjustment may be needed.
    Can I convert entire paragraphs?
    Yes. UPPERCASE, lowercase, Title Case, Sentence case, and Toggle Case work on any text length. Programming cases (camelCase, snake_case, etc.) work best on individual names or short phrases, they'll concatenate an entire paragraph into one long identifier.
    How does Sentence case work?
    Sentence case capitalises the first letter of each sentence and the first character of the text. Everything else becomes lowercase. It recognises sentence boundaries at periods, exclamation marks, and question marks.
    Is there a keyboard shortcut?
    This tool doesn't have built-in shortcuts, but most code editors do: VS Code has 'Transform to Uppercase/Lowercase/Title Case' in the command palette (Ctrl+Shift+P). For quick conversions, this browser tool is faster than opening an editor.

    Results are for general informational purposes only and should be checked before use. They are not professional advice. See our Disclaimer and Terms of Service.