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