Replace ‘0’ with ‘1’ and vice versa

Please log in or register to do it.

This tool replaces ‘0’ with ‘1’ and ‘1’ with ‘0’ in your text. It provides flexible options so you can swap all binary digits, swap only specified digits, swap all except allowed digits, or apply a custom format to the swapped digits. Simply enter your text and select the processing mode that suits your needs.

Processing Modes:


Swaps every ‘0’ with ‘1’ and every ‘1’ with ‘0’ in the text.

Swaps only the binary digits you specify. Enter a comma‑separated list (e.g., 0 or 1).

Swaps every binary digit except those you explicitly allow. Enter a comma‑separated list (e.g., 0).

Swaps each binary digit and applies a custom format. Use {digit} as a placeholder for the swapped digit.

Examples:

Swap All Binary Digits

Every ‘0’ is replaced with ‘1’ and every ‘1’ with ‘0’.

Before:
The binary number is 1010.
After:
The binary number is 0101.

Swap Only Specified Digits

Only the specified binary digits are swapped. For example, specifying “0” will swap only zeros to ones.

Before:
The binary number is 1010.
After (replacing only 0):
The binary number is 1111.

Swap All Except Allowed Digits

Swaps every binary digit except those allowed. For example, allowing “0” keeps zeros unchanged while swapping ones.

Before:
The binary number is 1010.
After (allowing 0):
The binary number is 0000.

Swap Digits with Custom Format

Each binary digit is swapped and wrapped in a custom format (e.g., "[{digit}]").

Before:
The binary number is 1010.
After (format "[{digit}]"):
The binary number is [0][1][0][1].
Extract all URLs from text
Replace only words inside double quotes

Your email address will not be published. Required fields are marked *