Knowledge (XXG)

Binary file

Source 📝

358:, each group of eight bits will typically be translated as a single character, and the user will see a (probably unintelligible) display of textual characters. If the file is opened in some other application, that application will have its own use for each byte: maybe the application will treat each byte as a number and output a stream of numbers between 0 and 255—or maybe interpret the numbers in the bytes as colors and display the corresponding picture. Other type of viewers (called 'word extractors') simply replace the unprintable characters with spaces revealing only the human-readable text. This type of view is useful for a quick inspection of a binary file in order to find passwords in games, find hidden text in non-text files and recover corrupted documents. It can even be used to inspect suspicious files (software) for unwanted effects. For example, the user would see any URL/email to which the suspected software may attempt to connect in order to upload unapproved data (to steal). If the file is itself treated as an 147: 555: 50: 307:). Encoding the data has the disadvantage of increasing the file size during the transfer (for example, using Base64 will increase the file's size by approximately 30%), as well as requiring translation back into binary after receipt. The increased size may be countered by lower-level link compression, as the resulting text data will have about as much less 278:
A text file may consist partly or entirely of encoded binary information. When sending binary files over the network they may be encoded so that they use only printable characters. This is often necessary due to the limitations of network protocols used for internet browsing and e-mail communication.
329:
programming languages allow the programmer to specify a parameter indicating if a file is expected to be plain text or binary when opening a file; this affects the standard library calls to read and write from the file in that the system converts between the C/C++ "end of line" character (the ASCII
374:
Standards are very important to binary files. For example, a binary file interpreted by the ASCII character set will result in text being displayed. A custom application can interpret the file differently: a byte may be a sound, or a pixel, or even an entire word. Binary itself is meaningless,
338:
systems, the C and C++ standard libraries on those systems also allow the programmer to specify whether a file is expected to be text or binary, but the libraries can and do ignore that parameter, as the end-of-line sequence in Unix-like systems is just the C/C++ end-of-line character.
375:
until such time as an executed algorithm defines what should be done with each bit, byte, word or block. Thus, just examining the binary and attempting to match it against known formats can lead to the wrong conclusion as to what it actually represents. This fact can be used in
413:
that are binary compatible, which means that a file produced in a Windows environment is interchangeable with a file produced on a Macintosh. This avoids many of the conversion problems caused by importing and exporting data.
404:
The term is used most commonly to state that data files produced by one application are exactly the same as data files produced by another application. For example, some software companies produce applications for
379:, where an algorithm interprets a binary data file differently to reveal hidden content. Without the algorithm, it is impossible to tell that hidden content exists. 259:
file can contain multiple images, and headers are used to identify and describe each block of image data. The leading bytes of the header would contain text like
401:
Two files that are binary compatible will have the same sequence of zeros and ones in the data portion of the file. The file header, however, may be different.
351:
or viewer may be used to view file data as a sequence of hexadecimal (or decimal, binary or ASCII character) values for corresponding bytes of a binary file.
232:. But binary files can also mean that they contain images, sounds, compressed versions of other files, etc. – in short, any type of file content whatsoever. 589: 311:
as it has increased size, so the actual data transferred in this scenario would likely be very close to the size of the original binary data. See
165: 133: 522: 755: 228:
computer programs are typical examples; indeed, compiled applications are sometimes referred to, particularly by programmers, as
220:) are grouped in eights. Binary files typically contain bytes that are intended to be interpreted as something other than text 987: 71: 798: 114: 582: 308: 86: 67: 932: 731: 303:) that do not allow all data values, they are often translated into a plain text representation (using, for example, 641: 93: 60: 939: 743: 322: 100: 944: 651: 636: 575: 312: 284: 248: 498: 362:
and run, then the operating system will attempt to interpret the file as a series of instructions in its
771: 221: 82: 959: 874: 808: 631: 445: 193: 848: 838: 788: 430: 288: 843: 833: 726: 236: 204:
files, contain the text of the document but also contain formatting information in binary form.
966: 719: 406: 395: 318: 283:. Also, files containing public-key and private-key information for use in systems employing 922: 815: 803: 781: 646: 363: 244: 164: 146: 912: 864: 391: 331: 201: 107: 879: 825: 738: 688: 683: 530: 197: 554: 188:. The term "binary file" is often used as a term meaning "non-text file". Many binary 981: 949: 891: 884: 714: 598: 376: 330:
linefeed character) and the end-of-line sequence Windows expects in files (the ASCII
181: 954: 927: 917: 709: 663: 435: 559: 291:) may also be stored with the binary information encoded in printable characters. 793: 678: 668: 626: 421:
of the computer. Some computers store the bytes in a file in a different order.
388: 355: 189: 49: 31: 776: 440: 418: 359: 348: 38: 17: 869: 750: 673: 621: 616: 410: 335: 185: 417:
One possible binary compatibility issue between different computers is the
704: 658: 271:
file. If a binary file does not contain any headers, it may be called a
240: 225: 151: 467: 159: 907: 304: 280: 168:. The first column numerates the line's starting address, while the 326: 300: 567: 468:"Binary file definition by The Linux Information Project (LINFO)" 192:
contain parts that can be interpreted as text; for example, some
247:
to interpret the data in the file. The header often contains a
213: 155: 571: 268: 256: 217: 43: 212:
Binary files are usually thought of as being a sequence of
27:
Non-human-readable computer file encoded in binary form
299:
To send binary files through certain systems (such as
37:".bin" redirects here. For the CD image format, see 900: 857: 824: 764: 697: 605: 74:. Unsourced material may be challenged and removed. 30:"binaries" redirects here. For double stars, see 255:which can identify the format. For example, a 583: 8: 590: 576: 568: 334:and linefeed characters in sequence). In 134:Learn how and when to remove this message 145: 456: 7: 493: 491: 489: 487: 462: 460: 72:adding citations to reliable sources 321:and its standard libraries for the 267:that can identify the binary as a 25: 216:, which means the binary digits ( 553: 354:If a binary file is opened in a 163: 48: 59:needs additional citations for 756:Hidden file / Hidden directory 1: 799:Filesystem Hierarchy Standard 558:The dictionary definition of 202:older Microsoft Word document 933:Comparison of file managers 732:List of filename extensions 1004: 523:"NCL: Reading binary data" 386: 315:for more on this subject. 235:Some binary files contain 36: 29: 940:File system fragmentation 744:Extended file attributes 652:Proprietary file formats 499:"Ascii vs. Binary Files" 945:File-system permissions 313:Binary-to-text encoding 285:asymmetric cryptography 194:computer document files 173: 988:Computer file formats 279:One such encoding is 172:indicates repetition. 149: 960:File synchronization 809:Semantic file system 632:List of file formats 446:List of file formats 383:Binary compatibility 289:website certificates 68:improve this article 789:Directory structure 431:Binary large object 394:compatibility, see 727:Filename extension 174: 975: 974: 967:File verification 720:Filename mangling 647:Open file formats 396:Binary compatible 319:Microsoft Windows 144: 143: 136: 118: 16:(Redirected from 995: 923:Data compression 804:Grid file system 782:Temporary folder 772:Directory/folder 592: 585: 578: 569: 557: 542: 541: 539: 538: 529:. Archived from 527:www.ncl.ucar.edu 519: 513: 512: 510: 509: 495: 482: 481: 479: 478: 464: 364:machine language 273:flat binary file 266: 262: 245:computer program 171: 167: 158:Knowledge (XXG) 139: 132: 128: 125: 119: 117: 76: 52: 44: 21: 1003: 1002: 998: 997: 996: 994: 993: 992: 978: 977: 976: 971: 913:File comparison 896: 865:File descriptor 853: 820: 760: 693: 637:File signatures 601: 596: 550: 545: 536: 534: 521: 520: 516: 507: 505: 497: 496: 485: 476: 474: 466: 465: 458: 454: 427: 399: 392:executable file 385: 372: 345: 332:carriage return 297: 264: 260: 210: 169: 140: 129: 123: 120: 77: 75: 65: 53: 42: 35: 28: 23: 22: 15: 12: 11: 5: 1001: 999: 991: 990: 980: 979: 973: 972: 970: 969: 964: 963: 962: 957: 947: 942: 937: 936: 935: 925: 920: 915: 910: 904: 902: 898: 897: 895: 894: 889: 888: 887: 882: 872: 867: 861: 859: 855: 854: 852: 851: 846: 841: 836: 830: 828: 822: 821: 819: 818: 813: 812: 811: 806: 801: 791: 786: 785: 784: 779: 768: 766: 762: 761: 759: 758: 753: 748: 747: 746: 739:File attribute 736: 735: 734: 724: 723: 722: 717: 712: 701: 699: 695: 694: 692: 691: 689:Zero-byte file 686: 684:Temporary file 681: 676: 671: 666: 661: 656: 655: 654: 649: 644: 639: 634: 624: 619: 609: 607: 603: 602: 599:Computer files 597: 595: 594: 587: 580: 572: 566: 565: 549: 548:External links 546: 544: 543: 514: 503:www.cs.umd.edu 483: 455: 453: 450: 449: 448: 443: 438: 433: 426: 423: 384: 381: 371: 370:Interpretation 368: 344: 341: 296: 293: 209: 206: 198:formatted text 184:that is not a 142: 141: 56: 54: 47: 26: 24: 14: 13: 10: 9: 6: 4: 3: 2: 1000: 989: 986: 985: 983: 968: 965: 961: 958: 956: 953: 952: 951: 950:File transfer 948: 946: 943: 941: 938: 934: 931: 930: 929: 926: 924: 921: 919: 916: 914: 911: 909: 906: 905: 903: 899: 893: 892:Symbolic link 890: 886: 883: 881: 878: 877: 876: 873: 871: 868: 866: 863: 862: 860: 856: 850: 847: 845: 842: 840: 837: 835: 832: 831: 829: 827: 823: 817: 814: 810: 807: 805: 802: 800: 797: 796: 795: 792: 790: 787: 783: 780: 778: 775: 774: 773: 770: 769: 767: 763: 757: 754: 752: 749: 745: 742: 741: 740: 737: 733: 730: 729: 728: 725: 721: 718: 716: 715:Long filename 713: 711: 708: 707: 706: 703: 702: 700: 696: 690: 687: 685: 682: 680: 677: 675: 672: 670: 667: 665: 662: 660: 657: 653: 650: 648: 645: 643: 640: 638: 635: 633: 630: 629: 628: 625: 623: 620: 618: 614: 611: 610: 608: 604: 600: 593: 588: 586: 581: 579: 574: 573: 570: 564:at Wiktionary 563: 562: 556: 552: 551: 547: 533:on 2017-10-12 532: 528: 524: 518: 515: 504: 500: 494: 492: 490: 488: 484: 473: 472:www.linfo.org 469: 463: 461: 457: 451: 447: 444: 442: 439: 437: 434: 432: 429: 428: 424: 422: 420: 415: 412: 408: 402: 397: 393: 390: 382: 380: 378: 377:steganography 369: 367: 365: 361: 357: 352: 350: 342: 340: 337: 333: 328: 324: 320: 316: 314: 310: 306: 302: 294: 292: 290: 286: 282: 276: 274: 270: 258: 254: 252: 249:signature or 246: 242: 238: 233: 231: 227: 223: 219: 215: 207: 205: 203: 199: 195: 191: 187: 183: 182:computer file 179: 166: 161: 157: 153: 148: 138: 135: 127: 116: 113: 109: 106: 102: 99: 95: 92: 88: 85: –  84: 83:"Binary file" 80: 79:Find sources: 73: 69: 63: 62: 57:This article 55: 51: 46: 45: 40: 33: 19: 18:Binary format 955:File sharing 928:File manager 918:File copying 765:Organisation 710:8.3 filename 664:Sidecar file 642:Magic number 612: 560: 535:. Retrieved 531:the original 526: 517: 506:. Retrieved 502: 475:. Retrieved 471: 436:Disassembler 416: 403: 400: 373: 353: 346: 317: 298: 295:Manipulation 277: 272: 250: 239:, blocks of 234: 229: 211: 190:file formats 177: 175: 130: 121: 111: 104: 97: 90: 78: 66:Please help 61:verification 58: 794:File system 679:System file 669:Sparse file 627:File format 613:Binary file 389:binary code 356:text editor 196:containing 178:binary file 154:of the 318 32:Binary star 901:Management 826:Operations 777:NTFS links 698:Properties 537:2017-10-12 508:2017-10-12 477:2017-10-12 452:References 441:Executable 419:endianness 360:executable 349:hex editor 243:used by a 222:characters 200:, such as 124:April 2013 94:newspapers 39:Disk image 870:Hard link 751:File size 674:Swap file 622:Data file 617:text file 411:Macintosh 336:Unix-like 287:(such as 208:Structure 186:text file 982:Category 875:Shortcut 705:Filename 659:Metafile 561:binaries 425:See also 409:and the 241:metadata 230:binaries 226:Compiled 152:hex dump 858:Linking 407:Windows 343:Viewing 309:entropy 237:headers 160:favicon 108:scholar 908:Backup 885:Shadow 305:Base64 281:Base64 265:GIF89a 261:GIF87a 253:number 110:  103:  96:  89:  81:  880:Alias 849:Write 839:Close 606:Types 301:email 251:magic 214:bytes 180:is a 162:, or 115:JSTOR 101:books 844:Read 834:Open 816:Path 387:For 325:and 218:bits 156:byte 87:news 327:C++ 269:GIF 263:or 257:GIF 70:by 984:: 615:/ 525:. 501:. 486:^ 470:. 459:^ 366:. 347:A 275:. 224:. 176:A 150:A 591:e 584:t 577:v 540:. 511:. 480:. 398:. 323:C 170:* 137:) 131:( 126:) 122:( 112:· 105:· 98:· 91:· 64:. 41:. 34:. 20:)

Index

Binary format
Binary star
Disk image

verification
improve this article
adding citations to reliable sources
"Binary file"
news
newspapers
books
scholar
JSTOR
Learn how and when to remove this message

hex dump
byte
favicon

computer file
text file
file formats
computer document files
formatted text
older Microsoft Word document
bytes
bits
characters
Compiled
headers

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.