Convert the Case of a String!

Convert a string to your desired case format!
  • Sentence case
  • UPPER CASE
  • lower case
  • Title Case
  • Start Case
  • aLtErNaTiNg cAsE
String
Result

Convert the Case of a String!

Convert a string to your desired case format!

Turns text into aLtErNaTiNg cAsE, switching between lowercase and uppercase from one character to the next. It is best known as the mocking SpongeBob meme style for parroting someone sarcastically.

For developers it is also a quick way to produce mixed-case input when you need test values for features that should ignore case, such as search, login emails or coupon codes.

How to use

  1. Click the aLtErNaTiNg cAsE tab above the input (URL /converter/string/alternatingcase).
  2. Type your text into the String box.
  3. Copy Result to use as a message or as test input.

Example

Input (Text)
this is fine
Output (aLtErNaTiNg cAsE)
tHiS Is fInE

Each character of this is fine is set by its position, counted from 0: even positions are lowercase and odd ones uppercase. Spaces take up positions too, which is why Is starts with a capital.

Supported features

  • Positions are counted from 0 across the entire text; even positions become lowercase, odd positions uppercase.
  • Spaces are not changed but still count as positions; line breaks, digits and symbols take a position as well.
  • The original capitalization is ignored and only position decides, so the same input always gives the same output.

Use cases

Testing case-insensitive handling

Generate values like UsEr@ExAmPlE.cOm to check, by hand or in a test case, that login, duplicate sign-up checks and search really ignore case.

Chat and social media memes

Produce the sarcastic mocking-meme text without flipping each letter yourself.

Notes and limitations

  • Counting continues across the whole text rather than restarting per word, so a word may start with either a capital or a small letter.
  • Caseless characters, such as Korean, are not changed but still occupy a position.
  • A line break counts as a position, so the first letter of the next line can flip.

FAQ

Can it start with a capital letter?

There is no option; position 0 is always lowercase. To start with a capital, add a leading space before converting and delete it afterwards, which shifts the pattern by one.

Can the casing be randomized?

No, the conversion is position-based and deterministic. For testing that is an advantage, since the same value can be reproduced every run.