달력

5

« 2024/5 »

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
2011. 8. 8. 13:45

Binary to HEX Converter Enjoy/etc2011. 8. 8. 13:45

출처 : http://sqa.fyicenter.com/Online_Test_Tools/Binary_to_HEX_Converter.php


Binary to HEX conversion is need if you want to open any non text file into a text editor to inspect issues like, hidden characters, corrupted UTF-8 sequences, corrupted file identifiers. This page allows you to learn and test the binary to HEX conversion process.

What is HEX?

HEX, hexadecimal, is a number presentation system that uses 16 values per digit, base 16. Those 16 values are represented with 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, and F. An integer presented in the decimal system can be easily can easily converted into the HEX system. For example:

Dec.    HEX
 7  -->   7
10  -->   A
15  -->   F
16  -->  10
31  -->  1F
32  -->  20

How to perform binary to HEX conversion?

Performing a binary to HEX conversion is to take the input string or file, treat it as a sequence of bytes, and convert each byte into two HEX digit according to the byte value. In PHP, this can be done easily with the bin2hex() function:

  • bin2hex(string) - Returns the HEX presentation of the input string.

To help you learn and test binary to HEX conversion, FYIcenter.com has designed this online testing page. All you need to do is to enter the testing string in the form below and click the Start button. The converted string will be presented in the result area.

String:  

Test Result

Result:


:
Posted by 라면스프