🧮 Parity Bit Calculator
Enter your binary data (using only 0s and 1s) and choose even or odd parity to calculate the correct parity bit and full codeword.
What this calculator does
A parity bit is a simple error-detection value added to binary data so the total number of 1-bits (including the parity bit) always follows a chosen rule: always even, or always odd.
How the calculation works
The calculator counts how many 1s appear in your entered data bits. For even parity, the parity bit is set to 0 if that count is already even, or 1 if it’s odd (to make the total even). For odd parity, the logic is reversed. The resulting parity bit is appended to the end of your data to form the full codeword.
This method can only reliably detect an odd number of bit errors (most commonly a single flipped bit); it cannot detect an even number of simultaneous errors and cannot correct any errors it does detect.