<script> function binary_decode( s ){ var i = 0, l = s.length, chr, out = ''; for( ; i < l; i += 8 ){ chr = parseInt( s.substr( i, 8 ), 2 ).toString( 16 ); out += '%' + ( ( chr.length % 2 == 0 ) ? chr : '0' + chr ); } return decodeURIComponent( out ); } var prueba = binary_decode('01101000011011110110110001100001'); alert(prueba); </script>