For Bitcoin Core and its derivatives, the blockchain is stored as multiple files, around 130 Mb each. The blocks are stored on the disk in their serialized format. The extra data for each block are the 4 network magic bytes and a varint the indicates the block size in bytes. Those data files are append only. There are additional files which index the locations of each block as well as undo data for those indices because everything is append only.