Enter a generator matrix G and instantly get the code length n, dimension k, rate, minimum distance, and the full list of codewords. Choose the alphabet: GF(2), GF(3), GF(4), or the ring Z4.

Linear Code Calculator

Generator matrix G

Enter one row per line. Separate entries with spaces or write them together (e.g. 1021). Arithmetic is over GF(2). Allowed symbols: 0, 1.

Examples:
Code parameters
GF(2)
Length (n)7columns of G
Dimension (k)4rank of G
Min distance (d)3min Hamming weight
Codewords162^4
Rate0.5714information rate
Notation[7, 4, 3]over GF(2)
Codewords
16 total
00000000
11000011
20100101
31100110
40010110
51010101
60110011
71110000
80001111
91001100
100101010
111101001
120011001
131011010
140111100
151111111