Hex Editor - Binary File Editing Software for Windows
Docs

Formatted Data Format

This powerful format allows you to convert a binary data to a sequence of numbers, encoded according to the selected type. You select a type of number, whether base 16 or base 10 is used to represent them, the number of numbers in a row and output type.

When selected data is not too complex, it is automatically put into the Clipboard in this format when user executes the Edit » Copy or Edit » Cut and cursor is in the code pane.

The Elements combo among with Group combo provide you with a choice of number type and grouping mode:

Group/ElementsBYTEWORDDWORDQWORD
Hex8-bit hexadecimal values16-bit hexadecimal values32-bit hexadecimal values64-bit hexadecimal values
Decimal8-bit decimal values16-bit decimal values32-bit decimal values64-bit decimal values
Octal8-bit octal values16-bit octal values32-bit octal values64-bit octal values
Binary8-bit binary values16-bit binary values32-bit binary values64-bit binary values
FloatN/AN/ASingle-precision floating-point values (encoded according to IEEE 754 standard).N/A
DoubleN/AN/AN/ADouble-precision floating-point values (encoded according to IEEE 754 standard).

When Elements or Group are set to “Default”, their values are taken from the current editor window.

Columns combo lets you specify the number of values in a row. If “Default” is selected, it is taken from the current editor window.

Addresses switch may be used to include row addresses in the output. Text pane switch includes the text pane in the output as well. Text pane is included only if the element type size is one or two bytes. In the latter case, Unicode text appears in the text pane. The text is separated from value list by the tabulation character (0x09). Both these options are available only for “Space-separated text” and "Comma-separated text" output formats.

Use Type combo to select an output format:

Without separators

Select data is encoded into a text stream:

6fa864000001c349444154384fbd934f4893611cc7dfcaa16188985887898c31294407319d2df12082d0452112ea344f1578110c092
Space-separated text

Selected data is encoded into space-separated value list. Below is a sample text (Addresses and Text pane options are turned OFF):

61 73 00 00 09 61 75 64 69 6f 73 69 7a 65 00 41
72 6f f6 60 00 00 00 00 08 68 61 73 41 75 64 69
6f 01 01 00 0a 61 75 64 69 6f 64 65 6c 61 79 00

Below is a sample text (Addresses and Text pane options are turned ON):

00000140: 61 73 00 00 09 61 75 64 69 6f 73 69 7a 65 00 41	as...audiosize.A
00000150: 72 6f f6 60 00 00 00 00 08 68 61 73 41 75 64 69	ro.`.....hasAudi
00000160: 6f 01 01 00 0a 61 75 64 69 6f 64 65 6c 61 79 00	o....audiodelay.
Comma-separated text

Selected data is encoded into comma-separated value list. Below is a sample text (Addresses and Text pane options are turned OFF):

61, 73, 00, 00, 09, 61, 75, 64, 69, 6f, 73, 69, 7a, 65, 00, 41
72, 6f, f6, 60, 00, 00, 00, 00, 08, 68, 61, 73, 41, 75, 64, 69
6f, 01, 01, 00, 0a, 61, 75, 64, 69, 6f, 64, 65, 6c, 61, 79, 00

Below is a sample text (Addresses and Text pane options are turned ON):

00000140: 61, 73, 00, 00, 09, 61, 75, 64, 69, 6f, 73, 69, 7a, 65, 00, 41	as...audiosize.A
00000150: 72, 6f, f6, 60, 00, 00, 00, 00, 08, 68, 61, 73, 41, 75, 64, 69	ro.`.....hasAudi
00000160: 6f, 01, 01, 00, 0a, 61, 75, 64, 69, 6f, 64, 65, 6c, 61, 79, 00	o....audiodelay.
C/C++ array

Selected data is converted into C/C++ array initialization:

unsigned char b1[] = {
    0x61, 0x73, 0x00, 0x00, 0x09, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x73, 0x69, 0x7a, 0x65, 0x00, 0x41, 
    0x72, 0x6f, 0xf6, 0x60, 0x00, 0x00, 0x00, 0x00, 0x08, 0x68, 0x61, 0x73, 0x41, 0x75, 0x64, 0x69, 
    0x6f, 0x01, 0x01, 0x00, 0x0a, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x00
};

or

unsigned short b1[] = {
    29537, 0, 24841, 25717, 28521, 26995, 25978, 16640, 28530, 24822, 0, 0, 26632, 29537, 30017, 26980, 
    367, 1, 24842, 25717, 28521, 25956, 24940, 121
};
Java array

Selected data is converted into Java array initialization:

byte b1[] = {
    0x61, 0x73, 0x00, 0x00, 0x09, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x73, 0x69, 0x7a, 0x65, 0x00, 0x41, 
    0x72, 0x6f, 0xf6, 0x60, 0x00, 0x00, 0x00, 0x00, 0x08, 0x68, 0x61, 0x73, 0x41, 0x75, 0x64, 0x69, 
    0x6f, 0x01, 0x01, 0x00, 0x0a, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x00
};

or

ushort b1[] = {
    29537, 0, 24841, 25717, 28521, 26995, 25978, 16640, 28530, 24822, 0, 0, 26632, 29537, 30017, 26980, 
    367, 1, 24842, 25717, 28521, 25956, 24940, 121
};
JavaScript array

Selected data is converted into Javascript array initialization:

var b1 = new Array (
    0x61, 0x73, 0x00, 0x00, 0x09, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x73, 0x69, 0x7a, 0x65, 0x00, 0x41, 
    0x72, 0x6f, 0xf6, 0x60, 0x00, 0x00, 0x00, 0x00, 0x08, 0x68, 0x61, 0x73, 0x41, 0x75, 0x64, 0x69, 
    0x6f, 0x01, 0x01, 0x00, 0x0a, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x00
);

or

var b1 = new Array (
    29537, 0, 24841, 25717, 28521, 26995, 25978, 16640, 28530, 24822, 0, 0, 26632, 29537, 30017, 26980, 
    367, 1, 24842, 25717, 28521, 25956, 24940, 121
);
Delphi array

Selected data is converted into Delphi array initialization:

b1 = array[1..48] of Byte = (
    0x61, 0x73, 0x00, 0x00, 0x09, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x73, 0x69, 0x7a, 0x65, 0x00, 0x41, 
    0x72, 0x6f, 0xf6, 0x60, 0x00, 0x00, 0x00, 0x00, 0x08, 0x68, 0x61, 0x73, 0x41, 0x75, 0x64, 0x69, 
    0x6f, 0x01, 0x01, 0x00, 0x0a, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x00
);

or

b1 = array[1..24] of Word = (
    29537, 0, 24841, 25717, 28521, 26995, 25978, 16640, 28530, 24822, 0, 0, 26632, 29537, 30017, 26980, 
    367, 1, 24842, 25717, 28521, 25956, 24940, 121
);
C# .NET array

Selected data is converted into C# array initialization:

Byte [] b1 = new Byte [] {
    0x61, 0x73, 0x00, 0x00, 0x09, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x73, 0x69, 0x7a, 0x65, 0x00, 0x41, 
    0x72, 0x6f, 0xf6, 0x60, 0x00, 0x00, 0x00, 0x00, 0x08, 0x68, 0x61, 0x73, 0x41, 0x75, 0x64, 0x69, 
    0x6f, 0x01, 0x01, 0x00, 0x0a, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x00
};

or

UInt16 [] b1 = new UInt16 [] {
    29537, 0, 24841, 25717, 28521, 26995, 25978, 16640, 28530, 24822, 0, 0, 26632, 29537, 30017, 26980, 
    367, 1, 24842, 25717, 28521, 25956, 24940, 121
};
Visual Basic .NET array

Selected data is converted into Visual Basic array initialization:

Dim b1() As Byte = { _
    61h, 73h, 00h, 00h, 09h, 61h, 75h, 64h, 69h, 6fh, 73h, 69h, 7ah, 65h, 00h, 41h,  _
    72h, 6fh, f6h, 60h, 00h, 00h, 00h, 00h, 08h, 68h, 61h, 73h, 41h, 75h, 64h, 69h,  _
    6fh, 01h, 01h, 00h, 0ah, 61h, 75h, 64h, 69h, 6fh, 64h, 65h, 6ch, 61h, 79h, 00h _
}

or

Dim b1() As UInt16 = { _
    29537, 0, 24841, 25717, 28521, 26995, 25978, 16640, 28530, 24822, 0, 0, 26632, 29537, 30017, 26980,  _
    367, 1, 24842, 25717, 28521, 25956, 24940, 121 _
}
PHP array

Selected data is converted into PHP array initialization:

var $b1 = array (
    0x61, 0x73, 0x00, 0x00, 0x09, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x73, 0x69, 0x7a, 0x65, 0x00, 0x41, 
    0x72, 0x6f, 0xf6, 0x60, 0x00, 0x00, 0x00, 0x00, 0x08, 0x68, 0x61, 0x73, 0x41, 0x75, 0x64, 0x69, 
    0x6f, 0x01, 0x01, 0x00, 0x0a, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x00
);
Assembler array

Selected data is converted into Assembler language array initialization:

b1 db   61h, 73h, 00h, 00h, 09h, 61h, 75h, 64h, 69h, 6fh, 73h, 69h, 7ah, 65h, 00h, 41h,
        72h, 6fh, f6h, 60h, 00h, 00h, 00h, 00h, 08h, 68h, 61h, 73h, 41h, 75h, 64h, 69h, 
        6fh, 01h, 01h, 00h, 0ah, 61h, 75h, 64h, 69h, 6fh, 64h, 65h, 6ch, 61h, 79h,