iLoveDocsTools
All ToolsText Case Converter

Text Case Converter

Convert text between 10 case formats: camelCase, PascalCase, snake_case, kebab-case, and more.

?

FREE

Loading…

Go Pro ↑
Your files never leave your device. All processing happens locally in your browser — nothing is uploaded to our servers.Files are never stored on our servers · No tracking of your file contentsPrivacy Policy

What is Text Case Converter?

Text Case Converter lets you paste any text and instantly reformat it into any of 10 case conventions: UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, and dot.case. Rather than guessing which format applies where, pick the one you need and get correctly converted output immediately, with automatic detection of word boundaries even in mixed-format input.

Every programming ecosystem and writing context has its own naming convention, and mixing them up is a fast way to introduce bugs or fail a linter. JavaScript and most C-family languages default to camelCase for variables and functions (firstName, calculateTotal). Classes and components in JavaScript, Java, and C# use PascalCase (UserProfile, HttpClient). Python, Ruby, and most SQL/database schemas use snake_case for variables and column names (first_name, created_at). URLs, CSS class names, and HTML attributes conventionally use kebab-case (user-profile, main-nav) because hyphens, unlike underscores, are never ambiguous in a URL and read cleanly as word separators. Environment variables and true constants across virtually every language use CONSTANT_CASE, sometimes called SCREAMING_SNAKE_CASE (MAX_RETRY_COUNT, API_BASE_URL). Getting the convention wrong is not just cosmetic — a database column expecting snake_case that receives camelCase, or a CSS class using underscores in a codebase that lints for kebab-case, causes real friction and sometimes outright bugs in ORMs and build tools that assume a specific convention.

Converting between these by hand is tedious and error-prone, especially when the source text is already in one format and needs to become another — turning userAccountBalance into user_account_balance means correctly finding the three word boundaries hidden inside the camelCase capitalization before you can even start reformatting. This tool handles that detection step automatically: it recognizes word boundaries from spaces, hyphens, underscores, and the lowercase-to-uppercase transitions that mark camelCase and PascalCase boundaries, so it correctly tokenizes input regardless of what format it currently happens to be in, then reassembles those tokens in whichever target format you select.

Beyond code, the Title Case and Sentence case options handle everyday text-cleanup tasks — fixing headline capitalization for a blog post, normalizing ALL-CAPS text pasted from a PDF or old document, or preparing consistent capitalization for a spreadsheet column of names or titles. Everything runs locally in the browser, so pasted text, including anything sensitive like internal variable names or unpublished headlines, never leaves your machine.

How It Works

The tokenizer first inserts a space at every boundary between a lowercase letter and a following uppercase letter, which splits camelCase and PascalCase input into separate words. It then treats underscores, hyphens, and periods as additional word separators, lowercases everything, and splits on whitespace to produce a clean array of individual words regardless of the original format. Each of the 10 case formatters then reassembles that same word array differently: joining with underscores for snake_case, joining with hyphens and no capitalization for kebab-case, capitalizing every word and removing spaces for PascalCase, capitalizing every word but the first for camelCase, and so on. Because tokenization happens once up front and is shared across all formats, converting the same input to a different target case is always consistent.

How to Use

  1. 1

    Paste your text

    Type or paste the text you want to convert into the input area — it can already be in any format, including mixed camelCase, snake_case, or plain sentences.

  2. 2

    Choose a target case format

    Select from UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, or dot.case.

  3. 3

    Convert

    Click "Convert to [format]" and the tool tokenizes your input and reassembles it in the selected case instantly.

  4. 4

    Review the output

    Check the result field to confirm word boundaries were detected correctly, especially with unusual mixed-format input.

  5. 5

    Copy the result

    Click "Copy" to copy the converted text to your clipboard, ready to paste into your code editor, spreadsheet, or document.

Who Uses This Tool

💻

Variable & Function Naming

Convert a human-readable phrase into camelCase or snake_case when naming variables, functions, or database columns in code.

🌐

URL & Slug Generation

Transform a blog post title into kebab-case to create clean, SEO-friendly URL slugs without manual editing.

📢

Headline Formatting

Apply Title Case to article headlines, email subjects, or presentation slide titles in one click.

📋

Pasted Text Cleanup

Fix all-caps or randomly capitalised text pasted from documents by converting it to Sentence case instantly.

🔑

Environment Variables

Convert configuration keys to CONSTANT_CASE to match the naming convention used for environment variables across all platforms.

🎨

CSS Class & ID Names

Turn descriptive phrases into kebab-case CSS class names that follow standard stylesheet conventions.

Why Choose This Tool

10 Case Formats

Covers every common format: UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, and dot.case.

Smart Tokenisation

Automatically splits on spaces, underscores, hyphens, and camelCase word boundaries so mixed-format input is handled correctly.

Visual Format Selector

Each format button shows its name and a short description so you can instantly see which one to choose without guessing.

One-Click Copy

The converted output is copied to your clipboard with a single button press, ready to paste directly into your editor.

Handles Any Input Case

Works regardless of whether your input is already in one specific case or a mix of formats, correctly tokenising before converting.

Fully Browser-Based

No data leaves your browser — your text stays private and conversions are instant with no server latency.

Key Benefits

  • Converts between 10 different case formats in one tool
  • Automatically detects word boundaries in camelCase, snake_case, and kebab-case input
  • Handles mixed or inconsistent input formatting correctly
  • One-click copy of the converted output
  • Visual format picker shows an example of each case style before you choose
  • No character limit on input length
  • 100% browser-based — pasted text and variable names never leave your device
  • Instant conversion with no page reload or server round-trip

Frequently Asked Questions

Also Known As

text case converter onlinecamelCase to snake_case converterconvert text to title case freeuppercase to lowercase converterkebab case converter onlinePascalCase generator toolsentence case convertertext formatting tool online

Trusted Worldwide

Free Online Document Tools for Everyone

iLoveDocsTools is used by students, professionals, and businesses across the United States, Canada, United Kingdom, Australia, India, and more than 100 other countries. All tools are browser-based and process files privately — your files never leave your device. Free to use, with Pro plans for unlimited access.

No Upload Required

All processing happens directly in your browser. Your documents are never sent to any server — complete privacy guaranteed for users in the USA, Canada, UK, and worldwide.

Free to Use — Pro Plans Available

Every tool on iLoveDocsTools is free to use. Need more? Upgrade to Pro for unlimited usage, priority access, and no daily limits. Trusted by students, freelancers, and teams across North America and Europe.

Works on Any Device

Whether you are on a Mac, Windows PC, iPhone, or Android in New York, Toronto, London, or Sydney — our tools work instantly in any modern browser.

Looking for free PDF tools in the USA? Free document converters in Canada? Online PDF editors in the UK or Australia? iLoveDocsTools offers 70+ free tools — merge PDF, split PDF, compress PDF, convert Word to PDF, Excel to PDF, JPG to PDF, and many more — all free, all instant, all private. No watermarks. No file size limits. Just free tools that work.