POWER TOOL Hex Editing • Dual File Compare • Visualization • Search & Regex Highlight

See, Compare, Edit & Visualize Binary Files — Fast.

Khanfar-Hex-Viewer is an advanced multi-panel hex editor designed for deep binary analysis, ECU tuning workflows, firmware investigation, patching, reverse engineering, and byte-level debugging. It supports dual-file comparison, diff navigation, range visualization, and interactive heatmaps.

Khanfar Hex Viewer Screenshot

Core Features

Everything you need in one place: load, compare, highlight, edit, visualize, and export binary data.

Dual File Viewer

Load Two Files in Parallel

Open File1 and File2 and view them in synchronized scrolling panels with offsets, hex bytes, and ASCII representation.

Byte-Level Compare

Compare and Highlight Differences

Compare both files and automatically highlight differing bytes. Navigate forward/backward through differences with Prev/Next.

Smart Searching

Search Hex or Text Patterns

Search for byte sequences (hex) or plain text and jump directly to matches. Uses cursor-based continuation + restart option.

Regex / Pattern Highlight

Highlight All Matches

Highlight patterns across the file using Regex mode (binary regex via UTF-8), Hex mode, or Text mode — then clear highlights anytime.

Live Offset Info

Offset + Value Inspector

Shows decimal and hex offsets, byte values (signed/unsigned), bit-set view, and also Word/DWord decoding in real time.

Real Editing Mode

Edit Hex Bytes or ASCII

Turn Edit Mode ON and modify the file directly. Editing updates both hex and ASCII view, writes into memory, then you can Save.

Interface Showcase

Six images from your pic folder are displayed here as real product screenshots.

How to Use Khanfar-Hex-Viewer

A clean, step-by-step tutorial that matches the actual workflow inside your program.

1) Open File 1 and File 2

Use the Open File 1 and Open File 2 buttons. Each file loads as bytes and renders into hex + ASCII lines.

2) Compare (Diff Highlight)

Click COMPARE. The software scans both files byte-by-byte and highlights differences in each panel.

3) Navigate Differences

Use < Prev and Next > to jump between diff offsets. The current byte is highlighted for visibility.

4) Use Search / Find Next

Choose Hex or Text, write your pattern, and press Enter or Find Next. It jumps to matches.

5) Highlight Patterns (Regex / Hex / Text)

Write a pattern and click Highlight All. You can highlight hundreds of matches and clear them anytime.

6) Edit Mode + Save

Turn Edit On. Modify bytes directly in Hex or ASCII zones. When done, click Save to export your patched file.

Visualization Window (Your Most Powerful Feature)

The visualization module turns bytes into 2D arrays and renders them using heatmaps + statistics — with multiple modes.

📊 File Heatmap Mode

Visualize File 1 or File 2 as a color-mapped matrix of byte values. Adjustable width + colormap options.

🔥 Difference Heatmap Mode

Visualize differences using a “diff mask”. You can control thickness (dilation radius) so tiny diffs remain visible.

🧩 Side-by-Side Mode

Displays File1, File2, and Diff simultaneously for a complete binary comparison overview.

🧾 Table Grid Mode

Shows a spreadsheet-style table view for selected ranges (≤ 20,000 bytes). Highlights differences in bright red.

🎯 Click-to-Jump Bytes

Click any cell on the heatmap and it jumps to that exact offset in the main editor and shows byte values.

📈 Entropy + Similarity Stats

Computes file entropy and similarity percentage based on differing bytes + size difference for quick analysis.

2-Day Free Trial & Pricing

Try Khanfar-Hex-Viewer free for 2 days with full access to all features. After the trial, purchase a lifetime license for $40 with support and updates included.

🎯 Special Offer: Lifetime license only $40 (includes support & updates)
📧 Contact developer at e4mwak@gmail.com to purchase your license
Trial Features: Full access to all hex editing, comparison, visualization, and search features for 2 days.
License Benefits: Lifetime access, free updates, email support, and priority feature requests.

FAQ

Common questions about what your tool can do.

Can I edit files and save changes safely?

Yes. When Edit Mode is ON, you can modify bytes either in the hex section or the ASCII section. Then save to a new output file.

What types of patterns can I search or highlight?

You can search using Hex byte sequences or Text. You can also highlight using Regex, Hex, or Text for multiple matches.

Why is Table Grid mode disabled sometimes?

Table Grid is limited to ≤ 20,000 bytes for safety and performance. Select a smaller byte range before opening visualization.

Does it support large files?

Yes, but your app warns the user for files larger than 5MB. Visualization and grid table will always be limited to prevent freezing.

What is entropy / similarity and why do I need it?

Entropy helps detect encryption/compression characteristics. Similarity shows how much two files match, including size differences.