A decoder in electronics parlance has N inputs and 2^N outputs. A given input combination yields a "1" on one and only one output line, the rest are zeros ( a "1" can be a low or a high voltage).
It is neither an encoder nor a decoder. It is a converter. See how that works, with the name being "converter" and all ? It converts one code to another code.