Case Converter
The Case Converter transforms text between UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, and kebab-case. For programmers, writers, and content creators.
Overview
A case converter is an essential utility for developers, writers, and data analysts, designed to programmatically alter the capitalization of text. This tool automates the transformation of text into various case styles, such as uppercase, lowercase, title case, sentence case, and more specialized formats like camelCase or snake_case. At a technical level, the tool parses the input string and applies a set of rules based on the selected case. For instance, converting to uppercase involves iterating through each character and replacing it with its corresponding uppercase equivalent using character encoding standards like ASCII or Unicode. More complex transformations, such as title case, require identifying word boundaries (spaces, hyphens) and capitalizing the first letter of each word, while ensuring that articles, prepositions, and conjunctions are not capitalized unless they are the first or last word. This functionality is crucial for maintaining consistent formatting in codebases, databases, and documents, which enhances readability and prevents errors that can arise from case sensitivity in programming languages and file systems.
The significance of a case converter extends beyond mere aesthetics; it plays a vital role in data processing and software development. In many programming languages, variable names and function identifiers are case-sensitive, meaning `myVariable` and `myvariable` would be treated as two distinct entities. A case converter helps enforce a consistent naming convention (e.g., camelCase for variables, PascalCase for classes) across a project, which is a cornerstone of writing clean, maintainable code. For data analysts, case converters are indispensable for data cleaning and normalization. When working with large datasets from multiple sources, inconsistencies in capitalization are common (e.g., \'new york\', \'New York\', \'NEW YORK\'). A case converter can quickly standardize these entries to a single format, ensuring accurate data aggregation and analysis. This process, known as case normalization, is a fundamental step in preparing data for machine learning models, statistical analysis, or database ingestion, preventing duplicate or fragmented records.
Modern case converter tools offer a wide array of advanced features that cater to specific professional needs. Beyond basic case changes, many tools now support \'slugify\' functionality, which converts text into a URL-friendly format by making it lowercase, removing special characters, and replacing spaces with hyphens. This is invaluable for SEO specialists and web developers creating clean and readable URLs. Some converters also provide options for alternating case (aLtErNaTiNg), inverse case (iNVERSE), and even more esoteric formats required in specific domains. The ability to handle multi-line text blocks and process large files makes these tools highly efficient for tasks that would be tedious and error-prone if done manually. By providing a simple interface to perform complex text manipulations, case converters empower users to enforce consistency, improve readability, and streamline their workflows, making it an indispensable tool in any digital toolkit.
Worked example
One heading turned into a title and a URL slug
An editor has the heading how to set up a proxy server in Ubuntu and needs a Title Case version for the page plus a kebab-case slug for the URL, without touching the rest of the article.
- Paste the heading and press Title Case. Every word is lowercased first, then the first letter of every token is uppercased.
- The small-word list keeps articles, conjunctions and short prepositions lowercase inside the title, so to, up and in stay lowercase.
- The first and the last word are always capitalised even when they are small words, so a heading that begins with the becomes The.
- Result: How to Set up a Proxy Server in Ubuntu.
- Press kebab-case for the slug. The conversion normalises to NFD and removes combining marks, replaces each run of non-alphanumeric characters with a hyphen and lowercases everything, giving how-to-set-up-a-proxy-server-in-ubuntu.
- Ubuntu survives as a word but loses its capital, because camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, dot.case and path/case all lowercase the tokens before rebuilding them. The same run on HTMLParser and XMLHttpRequest gives htmlparser-and-xmlhttprequest.
Result: The heading becomes How to Set up a Proxy Server in Ubuntu and the slug becomes how-to-set-up-a-proxy-server-in-ubuntu. The slug conversion is lossy by design: accents are stripped and inner capitals are flattened, so it is the right output for a URL and the wrong output for display text.
How to use Case Converter
- Paste text
- Click desired case
- View result
- Copy to clipboard
Common mistakes
Running Title Case over a heading that contains acronyms or product names.
The whole string is lowercased first, so HTMLParser becomes Htmlparser and iPhone becomes Iphone. Convert only the words you want changed and restore the capitals by hand, or the page title will look wrong.
Expecting camelCase to split an existing identifier into words.
The split happens on spaces, hyphens, underscores and punctuation, not on capital letters, so theWordCount is one token and becomes thewordcount. Write the words separately before converting.
Using the identifier conversions on text where the accents are part of the spelling.
camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, dot.case and path/case strip diacritics, so Cafe com Leite in Portuguese loses its accent in the slug. Title Case and Sentence case keep the accents because they never run the NFD pass.
Assuming Sentence case understands abbreviations.
Any period starts a new sentence, so e.g. this is a test becomes E.G. This is a test. Fix the two or three abbreviations in the text by hand after the conversion.
Features
- 8+ formats
- One-click
- Copy to clipboard
- Programming cases
Limits worth knowing
- Thirteen conversions are offered: UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, dot.case, path/case, aLtErNaTiNg cAsE and iNVERSE cASE. Title Case uses a fixed list of 49 English small words, so title conventions for other languages are not applied.
- Case mapping uses the interface language as the locale, so the Turkish dotless i is only handled correctly when the interface language is Turkish.
- The conversion applies to the whole box at once: no partial conversion of a selection, no undo history and no file import.
- The counters under the boxes are not the word counter: they split on whitespace and count code points, so they disagree slightly with the word-counter page on hyphenated and emoji text.
- Nothing is stored and nothing is uploaded; swapping input and result is done with the arrow button and clears the history of the previous conversion.
When to use it
- A developer is refactoring a legacy codebase and needs to convert all variable names from `snake_case` to `camelCase` to match the project\'s new coding standard. They paste entire code blocks into the tool.
- A marketing analyst receives a spreadsheet of user-submitted city names with inconsistent capitalization. They use the tool to convert the entire column to \'Title Case\' for a clean, professional report.
- A blogger is writing a new article and wants to create a search-engine-friendly URL slug from their headline, \'My Awesome New Blog Post\'. They use the slugify feature to generate \'my-awesome-new-blog-post\'.
- An editor is preparing a manuscript for publication and needs to ensure all chapter titles follow the Chicago Manual of Style. They use the specialized \'Title Case\' option for this.
- A social media manager is creating a series of posts and wants to use alternating case for a playful, attention-grabbing effect in a specific campaign. They use the aLtErNaTiNg cAsE option.
- A student is taking notes in class and hastily types everything in lowercase. Before submitting their notes, they use the \'Sentence case\' feature to quickly format them for better readability.
Practical tips
- Use the \'Sentence Case\' feature with proper noun detection for cleaner prose. Many advanced case converters can intelligently capitalize the first word of a sentence while leaving recognized proper nouns (like names or brands) capitalized, saving you significant editing time.
- Leverage `snake_case` or `kebab-case` for file naming conventions. To improve readability and avoid issues with spaces in file paths, use a case converter to batch-rename files into a consistent, web-friendly format before uploading them to a server or version control system.
- Combine case conversion with a text editor\'s multi-cursor feature for surgical precision. Select multiple distinct text blocks in an editor like VS Code, then paste them into the case converter to apply a transformation to all selections at once, then paste them back.
- Create a browser bookmarklet for instant access. If you frequently use a specific online case converter, create a custom bookmarklet with a small piece of JavaScript to send selected text from any webpage directly to the tool, streamlining your workflow.
- Use the \'Title Case\' feature with style guide-specific rules (e.g., APA, Chicago). For academic writing or professional publications, select the appropriate style guide to ensure your headlines and titles are formatted correctly without manual cross-referencing.
Why use this tool
- Ensure code consistency and prevent bugs. In case-sensitive languages like JavaScript, `myVar` and `myvar` are different. A case converter enforces a single style (like camelCase or PascalCase), reducing hard-to-find errors and improving code readability for team collaboration.
- Accelerate data cleaning and normalization. When dealing with datasets from various sources, inconsistent capitalization is a common problem. A case converter instantly standardizes text to a uniform case, ensuring accurate analysis and preventing data fragmentation without manual effort.
- Improve SEO with clean, readable URLs. This tool can instantly \'slugify\' article titles or product names into URL-friendly strings by converting them to lowercase and replacing spaces with hyphens, which is a best practice for search engine optimization.
- Maintain brand voice and style guide consistency. For marketing and content teams, ensuring that titles, headlines, and body copy adhere to a specific style (e.g., AP Style title case) is crucial. A case converter automates this process, ensuring brand consistency across all channels.
- Save time on tedious manual text editing. Whether you\'re a writer, developer, or analyst, manually changing text case is a time-consuming and error-prone task. A case converter performs this job in seconds, freeing you to focus on more critical aspects of your work.
- Facilitate content migration between systems. When moving content between different platforms (e.g., from a Word document to a CMS), case formatting can be lost or altered. A case converter makes it easy to re-apply the correct case structure required by the new system.
When this is not the right tool
- A house style says specific words must stay capitalised or lowercase regardless of position. — a written style list applied by hand or by a linter such as a Vale rule, because no case converter knows a brand vocabulary.
Frequently asked questions
camelCase?
Words joined, first lowercase, rest capitalized: myVariableName.
snake_case?
Words with underscores, all lowercase: my_variable_name.
kebab-case?
Words with hyphens: my-css-class.
Title Case?
First letter of each word capitalized.
Related tools in Text Tools
- Word Counter — Free Word Counter — count words, characters, sentences, paragraphs, and reading time instantly.
- Lorem Ipsum Generator — The Lorem Ipsum Generator creates placeholder text for design mockups and prototypes.
- Text Reverser — Free Text Reverser tool — flip text backwards instantly, character by character or word by word.
- Remove Duplicate Lines — Remove Duplicates eliminates duplicate lines from text, keeping only unique entries.
- Text Diff Checker — Text Diff compares two texts side by side with color-coded highlighting of additions, deletions, and changes.
- Text to Speech — Text to Speech converts written text into natural speech using browser synthesis.
- Markdown Preview — Markdown Preview renders Markdown to HTML in real-time.
- Emoji Picker — The Emoji Picker provides thousands of searchable emojis organized by category.
- Grammar Checker — The AI Grammar Checker analyzes text for grammar, spelling, punctuation, and style errors.
- Citation Generator — Free citation generator for academic papers.
Further reading
Case Converter: Transform Text to Any Case Style
Convert text between uppercase, lowercase, title case, sentence case, and more. Perfect for formatting text quickly.