Magic 바이트 식별기: 흔한 실수와 해결 방법
실제로 발생하는 실패 유형과 출력에서 어떻게 보이는지, 그리고 구체적인 해결 방법.
사용 방법
- 먼저 입력 인코딩을 확인하세요 — stray BOM이나 UTF-8이 아닌 붙여넣기는 도구가 실행되기 전에 결과를 망가뜨립니다.
- 조용한 잘림을 살피세요. 출력 길이가 수상하게 딱 떨어지면 뭔가 잘린 것입니다.
- 바꾼 옵션이 작업에 필요한 것인지 확인하세요. 남아 있는 기본값이 "그럴듯하지만 잘못된 결과"의 가장 흔한 원인입니다.
- 손으로 검증할 수 있는 최소 입력으로 다시 실행한 뒤 실제 데이터를 되돌려 넣으세요.
예제
The PNG signature followed by the start of its IHDR chunk.
입력
89504E470D0A1A0A0000000D49484452
출력 — 검색 결과
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.
실행
설명
Identify a file type from its signature bytes rather than its extension — the safe way to validate uploads.
관련 도구
파일 to Base64 변환기Encode any local file to Base64 — nothing is uploaded.Base64 to 파일 DownloaderDecode Base64 back into the original file.파일 해시 검사기MD5/SHA-1/SHA-256/SHA-512 of any file, computed locally.파일 Metadata ViewerInspect name, MIME type, size and modification time.파일 to ZIP 패키저Bundle multiple files into a ZIP archive locally.Base64 인코더Encode text, JSON, URLs or files to Base64, standard or URL-safe.