# Online Hex Viewer - Inspect, Search & Compare Binary Files

> View any file as hex + ASCII: go to offsets, search bytes or text, decode values, detect 60+ file types, parse PNG/ZIP/PDF/ELF/PE headers and diff files.

- URL: https://qilingtools.com/en/hex-viewer
- Category: Developer Tools (https://qilingtools.com/en/dev)
- Tags: [Developer](https://qilingtools.com/en/tags/dev), [Data Formats](https://qilingtools.com/en/tags/data), [Encoding](https://qilingtools.com/en/tags/encode)
- Last updated: 2026-10-26
- Price: Free, no sign-up
- Privacy: Runs locally in the browser; files are never uploaded

See what’s really inside a file, confirm its true format or find where two files differ — without installing anything. Drop a file in to browse it as classic hex + ASCII with 8, 16 or 32 bytes per row and offsets in hex or decimal. The file is read in small chunks on demand and the view is virtualized, so multi-gigabyte disk images and logs open instantly and scroll smoothly. Jump to any offset, or search for a hex byte sequence or UTF-8 / UTF-16 text (optionally case-insensitive) forwards and backwards. Click or drag to select bytes and the data inspector shows int8–int64, unsigned, float16/32/64, LEB128, Unix timestamps, Windows FILETIME, DOS dates, GUIDs and IPv4 in little- or big-endian, plus the selection as UTF-8, UTF-16 or Windows-1252 text. Magic numbers identify more than 60 file types — images, audio and video, archives, Office files, executables, fonts, databases and more — with a warning when the extension doesn’t match. PNG chunks, JPEG segments, GIF, BMP, ZIP local headers and end of central directory, PDF header and trailer, ELF headers, PE DOS / COFF / optional headers and section tables, and RIFF / WAV chunks are color-coded with their field values listed; click to jump. Compare mode shows two files side by side with differing bytes in red and steps through each difference. Export a selection as hex, hexdump, Base64, a C array, Python bytes or a JS Uint8Array. Strictly read-only, and nothing is uploaded.

## How to use

1. Drop a file in or click to choose one (add a second file to compare)
2. Scroll, jump to an offset or search bytes / text, and click bytes to inspect values
3. Check the detected file type and structure fields, and export selections as hex, Base64, a C array and more

## Features

- On-demand chunked reading + virtual scrolling for GB-sized files
- 8 / 16 / 32 bytes per row, hex or decimal offsets
- Go to offset, search hex bytes and UTF-8 / UTF-16 text
- Data inspector: integers, floats, timestamps, GUIDs, both endiannesses
- 60+ file signatures with extension mismatch warnings
- Structure highlighting for PNG, JPEG, ZIP, PDF, ELF, PE and more
- Byte-by-byte file comparison with next-difference navigation
- Export selection as hex, hexdump, Base64, C / Python / JS arrays

## FAQ

### How large a file can I open — is it uploaded?

Nothing is uploaded. Only the part you’re looking at is read (64 KB chunks, with at most 16 MB cached), so multi-gigabyte files open fine. Search and compare scan the whole file in chunks; speed depends on your disk and browser, typically hundreds of MB per second.

### Can I edit the file?

No — it’s a read-only viewer and never modifies the original. To extract part of a file, select it and export it as hex, Base64, a C array or another format.

### How accurate is file type detection?

Detection uses magic numbers at the start of the file (or at fixed offsets for formats like TAR and ISO), which is very reliable for formats with clear signatures such as PNG, PDF, ZIP and ELF. ZIP-based formats like docx, xlsx, apk and jar are told apart by the file names inside the archive. Weak signatures such as MP3 frames, zlib streams or JSON are listed last as hints.

### What’s the difference between little- and big-endian?

Multi-byte numbers can be stored in two byte orders. Little-endian (LE) puts the least significant byte first and is used by x86, ARM, Windows and most file formats; big-endian (BE) puts the most significant byte first and is used by network protocols, Java class files, PNG and JPEG. For example, 01 02 is 513 as LE and 258 as BE. If unsure, check both and see which value makes sense.

## Related tools

- [JSON Formatter](https://qilingtools.com/en/json): Free online JSON formatter: beautify or minify, validate with the exact line and column of any error, browse a collapsible tree, sort keys and escape strings.
- [Base64 Encode/Decode](https://qilingtools.com/en/base64): Free online Base64 encoder and decoder: UTF-8 safe, optional URL-safe variant, convert text to Base64 and back in real time. Processed locally, never uploaded.
- [URL Encode/Decode](https://qilingtools.com/en/url-encode): Free online URL encoder and decoder with encodeURIComponent and encodeURI modes. Escapes Chinese, spaces and special characters. Real-time and local, no upload.
- [JWT Decoder](https://qilingtools.com/en/jwt): Free online JWT decoder: decode the header and payload of a JSON Web Token, show expiry and issued-at times, all locally without uploading the token.
- [Timestamp Converter](https://qilingtools.com/en/timestamp): Free online Unix timestamp converter: convert timestamps and dates, auto-detect seconds or milliseconds, and show local, UTC, ISO 8601 and relative time.
- [Hash / Checksum](https://qilingtools.com/en/hash): Free online hash calculator: SHA-1, SHA-256, SHA-384 and SHA-512 of text or any file through the browser crypto API. Files never leave your device.
- [UUID Generator](https://qilingtools.com/en/uuid): Free online UUID generator: create RFC 4122 UUID v4 in bulk with a cryptographic RNG. Options for uppercase, no hyphens and braces, with one-click copy.
- [Base Converter](https://qilingtools.com/en/base-convert): Free online number base converter: convert between binary, octal, decimal, hexadecimal and any base 2–36. Uses BigInt for huge integers, computed locally.
