Free Online Tool

Free Online Case Converter

Convert text to uppercase, lowercase, title case, sentence case, camelCase, snake_case, and more with our free online case converter.
Choose from 31 text conversion and cleanup options to format headings, prepare programming identifiers, remove extra spaces, sort lines, and organize text. No registration required, and text conversions happen directly in your browser.

Your text
0 chars
0Words
0Lines
0Sent.
1m~Read

31 case conversion and text cleanup options — select one to transform your text

About

What is a Case Converter?

A text case converter is a free online tool that instantly changes the capitalization style of any text. Whether you need UPPERCASE for emphasis, camelCase for code, or slug-format for URLs, it all happens in your browser — nothing is sent to a server.

Beyond capitalization, the same page cleans text: remove extra or all spaces, strip line breaks and empty lines, delete duplicate lines, sort lines A→Z or Z→A, and reverse words, lines or whole text.

Text Case Formats Explained

UPPERCASE

Converts every letter to capitals. Great for headings, emphasis, and abbreviations.

lowercase

Converts every letter to small letters. Useful for emails and technical identifiers.

Title Case

Capitalizes every major word — standard for titles, book names, and article headings.

Sentence case

Capitalizes only the first word of each sentence, matching normal prose writing.

camelCase

Words joined with no spaces; each new word starts capitalized except the first. Used in JS/Java.

snake_case

Words joined by underscores in lowercase. Standard in Python, Ruby, and SQL columns.

kebab-case

Words joined by hyphens in lowercase. Standard for URLs, CSS class names, and slugs.

PascalCase

Like camelCase but every word capitalized, including the first. Used in class names in C#/Java.

How to Use

  1. Type or paste

    Enter your text in the input box.

  2. Pick a format

    Select any case or cleanup option from the list below the box.

  3. Copy the result

    Your text is converted right in the box — press Copy and paste it anywhere.

Reference

Case conversion examples

The table below shows how different case conversion options transform the sample text my new Blog post title. Compare the results to choose the format that suits your writing, coding, or formatting needs. Random Case and SpongeBob Case results may vary between conversions.

Each case format applied to “my new Blog post title”
Format Result
Sentence case My new blog post title
lower case my new blog post title
UPPER CASE MY NEW BLOG POST TITLE
Capitalized Case My New Blog Post Title
Title Case My New Blog Post Title
aLtErNaTiNg mY NeW BlOg pOsT TiTlE
rAnDoM cAsE MY nEw BLOG posT titLE
SpongeBob Case my NeW BlOG poST tiTLe
iNVERSE cASE MY NEW bLOG POST TITLE
camelCase myNewBlogPostTitle
PascalCase MyNewBlogPostTitle
snake_case my_new_blog_post_title
CONSTANT_CASE MY_NEW_BLOG_POST_TITLE
Train-Case My-New-Blog-Post-Title
Hyphen-case my-new-Blog-post-title
SCREAMING-KEBAB MY-NEW-BLOG-POST-TITLE
path/case my/new/blog/post/title
kebab-case my-new-blog-post-title
dot.case my.new.blog.post.title
Slug / URL my-new-blog-post-title
Reverse Text eltit tsop golB wen ym

Which case to use in code

Programming languages and development teams commonly follow naming conventions to keep code consistent and readable. For example, JavaScript often uses camelCase for variables, while Python commonly uses snake_case. The table below summarizes common conventions, although individual projects and style guides may differ.

Common naming conventions by language
Language Variables and functions Classes and types Constants
JavaScript and TypeScript camelCase PascalCase CONSTANT_CASE
Python (PEP 8) snake_case PascalCase CONSTANT_CASE
Java camelCase PascalCase CONSTANT_CASE
C# camelCase for locals, PascalCase for methods and properties PascalCase PascalCase
Ruby snake_case PascalCase CONSTANT_CASE
Go camelCase if private, PascalCase if exported PascalCase Same as variables

Outside code, kebab-case is the norm for CSS class names, URLs and file names, and snake_case is common for database columns.

Text cleanup tools

Trim Lines
Removes spaces and tabs at the start and end of every line, and collapses three or more blank lines into one.
Remove Extra Spaces
Turns runs of spaces and tabs into a single space and trims the ends. Line breaks are kept.
Remove All Spaces
Deletes every space, tab and line break.
Remove Line Breaks
Joins all lines into one line, separated by single spaces.
Remove Empty Lines
Deletes lines that are empty or contain only whitespace.
Remove Duplicate Lines
Keeps the first copy of each line and deletes later repeats. Matching is exact and case-sensitive.
Sort Lines A→Z
Sorts lines alphabetically from A to Z using your browser's language rules.
Sort Lines Z→A
Sorts lines alphabetically from Z to A.
Reverse Words
Reverses the order of words on each line.
Reverse Lines
Reverses the order of the lines, so the last line comes first.

Help

Frequently Asked Questions

What is a text case converter?

A text case converter changes the capitalization style of any text instantly. Convert to UPPERCASE, lowercase, Title Case, camelCase, snake_case and more — all processed in your browser with zero data sent to a server.

What is the difference between Title Case and Sentence case?

Title Case capitalizes the first letter of every major word (e.g. 'The Quick Brown Fox'). Sentence case only capitalizes the first letter of each sentence (e.g. 'The quick brown fox'). Title Case is standard for headings; Sentence case matches everyday writing.

What is camelCase and when is it used?

camelCase joins words with no spaces, capitalizing each new word except the first (e.g. 'helloWorld'). It's the standard naming convention for variables and functions in JavaScript, Java and TypeScript.

What is snake_case?

snake_case writes all words in lowercase separated by underscores (e.g. 'hello_world'). It's widely used in Python, Ruby, SQL column names and file names.

Can I remove duplicate lines or sort a list?

Yes. Choose 'Remove Duplicate Lines', 'Sort Lines A→Z' or 'Sort Lines Z→A' in the list of options and the result updates instantly.

Is this tool free and private?

Yes — completely free with no account required, and all processing happens locally in your browser. Your text is never uploaded.