Magic Byteidentificator: veelgemaakte fouten en hoe je ze oplost
De faalwijzen die echt voorkomen, hoe ze in de uitvoer zichtbaar zijn en de concrete oplossing.
Gebruiksaanwijzing
- Controleer eerst de invoercodering — een verdwaalde BOM of een niet-UTF-8 paste corrupteert het resultaat voordat de tool draait.
- Let op stille truncatie: is de uitvoerlengte verdacht rond, dan is er iets afgekapt.
- Bevestig dat de gewijzigde optie de benodigde is; een vergeten standaardwaarde is de meest voorkomende oorzaak van een plausibel maar fout resultaat.
- Draai opnieuw met een minimale, handmatig controleerbare invoer en voeg daarna je echte gegevens weer toe.
Voorbeelden
The PNG signature followed by the start of its IHDR chunk.
Invoer
89504E470D0A1A0A0000000D49484452
Uitvoer — Resultaten
Bytes: 89 50 4E 47 0D 0A 1A 0A ASCII: .PNG.... Detected: PNG image Signature matched: 89504E470D0A1A0A → PNG image Detection is by file signature, not by extension — this is how servers should validate uploads, since a client can rename anything to .png.
Uitvoeren
Beschrijving
Identify a file type from its signature bytes rather than its extension — the safe way to validate uploads.
Magic Byteidentificator → · Gebruiksaanwijzing → · Bestandstools →
Gerelateerde tools
Bestand to Base64-ConverterEncode any local file to Base64 — nothing is uploaded.Base64 to Bestand DownloaderDecode Base64 back into the original file.Bestand HashcontroleMD5/SHA-1/SHA-256/SHA-512 of any file, computed locally.Bestand Metadata ViewerInspect name, MIME type, size and modification time.Bestanden to ZIP-PakkerBundle multiple files into a ZIP archive locally.Base64-EncoderEncode text, JSON, URLs or files to Base64, standard or URL-safe.