Hex Viewer

Display file contents in hexadecimal and ascii



The "Hex Viewer" web application (PWA) enables users to visually inspect the content of any file through both hexadecimal and ASCII representations presented side by side. This utility is a valuable tool for pinpointing byte-level anomalies within files or identifying file types based on their magic numbers. Within the hexadecimal section, each byte, composed of 8 bits, is denoted by a two-digit hexadecimal value. Selecting a byte automatically highlights its corresponding ASCII character. In instances where the file's size exceeds the viewport, a scrollbar enables navigation through the entire file. Additionally, a jump tool located in the toolbar facilitates rapid navigation to specified file offsets. This web application operates offline and ensures that file data remains local, without any transmission to external servers.


To use this tool, first allow the page to fully load its resources. Once loaded, the hex viewer becomes available for offline access. Simply drag and drop a file into the viewer or double-click anywhere on the interface to select a file. Upon selection, the extension will display the hexadecimal representation of the given file. Customization options such as adjusting the number of rows and columns are accessible from the toolbar area. Additionally, a tool for jumping to specific bytes within the file is provided.

This utility is particularly useful for identifying file types through the recognition of magic bytes (magic numbers). Many well-known file formats incorporate identifier bytes at specific offsets, allowing file explorers and operating systems to swiftly detect the file type. For instance, the MP3 file format typically begins with the magic bytes "49 44 33," which indicates its identity. Here are 10 examples of magic bytes from some of the most famous file types:

For a more comprehensive list of magic bytes visit Wikipedia.

Related Blog Posts

  1. Reclaim Your Digital Privacy from Online Tracking: Online tracking has made it difficult for users to browse through the internet with ease. Back in the days, tracking a person involved having deep knowledge and a keen eye. But, since the dawn of technology, it has become easy to track people...
  2. On the Privacy & Security of TOR Browser: TOR is one of the most popular software out there which protects internet users by maintaining their privacy when they go online. TOR stands for The Onion Router, and the name makes more sense than one might think...
Comments and feedback