Binary Converter

Does anyone have a program that works with the serial port to do something like this website? http://www.roubaixinteractive.com/PlayGround/Binary_Conversion/Binary_To_Text.asp

ASCII to binary would be easy.

byte recieved = Serial.read();
Serial.print(recieved,BIN);

The other way around would be slightly more difficult, but feasable.