Tool to create or read a file from binary / octal / decimal / hexadecimal data, ie. the creation/generation of any file from any data format.
File Creation - dCode
Tag(s) : Informatics
dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!
Any computer data is a sequence of 0s and 1s. A file is therefore a container of binary data.
From a sequence of raw data, it is possible to recreate a file.
Example: The sequence of binary characters 01000001 (8 bits size or 1 byte) can be written to a file.
Although stored in binary, the data is represented differently to the display on a screen to make it a little more readable by a human.
Example: A file containing a byte 01000001 will be represented differently depending on its purpose (or extension)
Text files are usually ASCII encoded, and binary data corresponding to letters, numbers, or printable characters are displayed with the corresponding symbol on the screen.
Example: 01000001 will be represented by the letter A (ASCII code)
Non-text files (executable, compressed, etc.) are stored in binary and can not be read with numbers or letters, often the hexadecimal format is used to represent the binary content faster. The hexadecimal format allows to display with 2 characters one byte (thus 8 bits), which represents a significant visual gain of space.
Example: 01000001 will be represented by the hexadecimal code 0x41