Frogg logo

Frogg's web tools

Hand Crafted Tools

Home > Online scripts > Binary Encoder & Decoder
Welcome on Frogg's web tools | Current date :
21/11/2024

Online Binary Encoder & Decoder

A binary code represents text or computer processor instructions using the binary number system's two binary digits, 0 and 1. The binary code assigns a bit string to each symbol or instruction. For example, a binary string of eight binary digits (bits) can represent any of 256 possible values and can therefore correspond to a variety of different symbols, letters or instructions. (source wikipedia)
Scripts are in pure javascript to prevent encoded/decoded Binary storing which could be seen by server administrator.
  • 1. Select in tab encode or decode :
    If you want to encode or decode a Binary string select the corresponding tab
  • 2. Copy your string :
    Copy your string to "Binary to decode/encode" area
  • 3. Select options :
    If needed you can choose "Binary decode/encode" options
  • 4. Start the process :
    Click on the "Binary decode/encode" button to start encoding/decoding process
  • 5. Result :
    You can use the "copy result to clipbord" button to copy result
copy to clipboard JS Binary encode/decode function
//Binary decode to string
result = '';
for( i=0 ; i < binaryString.length ; i=i+8 )
	result += String.fromCharCode(parseInt(binaryString.substring(i,i+8), 2) );

//Binary decode to decimal
result = parseInt(binaryString,2);

//Binary decode to hexadecimal
result = parseInt(binaryString,8);

//Binary encode
for (i=0; i < string.length; i++)
    result +=string[i].charCodeAt(0).toString(2);

Binary decimal convertion:
53 =        1  1 0 1 0 1
256 128 64 32 16 8 4 2 1
Decode
Encode

Binary decode

paste from clipboard
  • Place here your Binary to decode
  • Choose your decoding options
copy result to clipboard
  • Binary decoded string

Binary encode

paste from clipboard
  • Place here your Binary to encode
  • Choose your source format
  • Choose your encoding result option
copy result to clipboard
  • Binary encoded string
Page created by the 10/09/2016 21:30
Generated in 0.001 sec & displayed in ... sec