WPF HexEditor is a powerful, high-performance hex editor control for .NET applications. Built with modern MVVM architecture and optimized for files from bytes to gigabytes, it delivers professional-grade binary editing with 99% faster rendering and 10-100x faster search than legacy versions.
Perfect for: binary file analysis, game ROM modding, data recovery, protocol debugging, security research, and any application requiring low-level data inspection.
1. Install via NuGet (V1 only):
dotnet add package WPFHexaEditor2. Add to your XAML:
<Window xmlns:hex="clr-namespace:WpfHexaEditor;assembly=WPFHexaEditor">
<hex:HexEditor FileName="data.bin" />
</Window>3. Done! ๐
๐ก JetBrains Rider Users: No visual toolbox? No problem! See the Rider Guide for IntelliSense tips, Live Templates, and sample projects.
๐ Complete Tutorial | 7+ Sample Apps | API Docs
|
|
|
|
|
|
Upgrading from V1? โ Migration Guide (zero code changes required!)
| Metric | V1 Legacy | V2 Modern | Improvement |
|---|---|---|---|
| Rendering | ItemsControl | DrawingContext | โก 99% faster |
| Search | Standard | LRU + Parallel + SIMD | โก 10-100x faster |
| Memory | High | Span<T> + Pooling | โก 80-90% less |
| Architecture | Monolithic | MVVM + 15 Services | ๐๏ธ Service-based |
| Bugs | Insert Mode Save loss |
All fixed โ | โ Production ready |
โ See complete feature comparison (163 features)
Note: The screenshots below are from V1 (Legacy). V2 screenshots will be added soon.
๐ง Advanced Features - Click to see more screenshots
| Document | Description |
|---|---|
| GETTING_STARTED.md | ๐จโ๐ป Complete tutorial with code examples |
| FEATURES.md | ๐ Full V1 vs V2 comparison (163 features) |
| MIGRATION.md | ๐ V1โV2 migration guide (zero code changes) |
| CHANGELOG.md | ๐ Version history and changes |
| Document | Description |
|---|---|
| Architecture Overview | ๐๏ธ Complete system architecture with diagrams |
| Core Systems | โ๏ธ ByteProvider, Position Mapping, Edit Tracking, Undo/Redo, Rendering, Services |
| Data Flow | ๐ File operations, Edit operations, Search, Save sequences |
| API Reference | ๐ Complete API documentation with examples |
| Folder | Description |
|---|---|
| PartialClasses/ | ๐ HexEditor organized by functionality (Core, Features, Search, UI) |
| Services/ | ๐ง 15 specialized services (Search, Clipboard, Bookmarks, etc.) |
| Core/Bytes/ | ๐พ ByteProvider system and data management |
| Sample | Description |
|---|---|
| C# WPF Sample | Main comprehensive demo with all features |
| AvalonDock Sample | IDE-like dockable interface |
| BarChart Sample | Visual data analysis |
| WinForms Sample | Windows Forms integration |
| Binary Diff Sample | File comparison tool |
| Insert Anywhere Sample | Dynamic insert/delete operations |
| Service Usage Sample | Console app (headless usage) |
โ Browse all samples with documentation
- โ Multi-format editing - Hex, Decimal, Binary, Octal
- โ Multi-byte support - 8/16/32-bit values with endianness control
- โ Insert/Overwrite modes - Full insert mode support (Issue #145 fixed)
- โ Unlimited Undo/Redo - Complete history management
- โ Copy as code - Generate byte arrays for C#, VB, Java, Python, etc.
- ๐ LRU Search Cache - 10-100x faster repeated searches
- โก SIMD Vectorization - Hardware-accelerated search (AVX2/SSE2)
- ๐ Parallel Multi-Core - Automatic for files > 100MB
- ๐ Scrollbar Markers - Visual indicators for search/bookmarks/changes and selection!
- ๐ BarChart View - Byte frequency visualization
- ๐ช AvalonDock Support - Professional IDE integration
- ๐ 9 Languages - English, Spanish, French, Polish, Portuguese, Russian, Chinese
- ๐๏ธ MVVM Architecture - ViewModel, RelayCommand, INotifyPropertyChanged
- โฑ๏ธ Async Operations - Progress reporting + cancellation
- ๐จ Fully Customizable - Colors, fonts, themes, display modes
- ๐ฎ TBL File Support - Custom character tables for ROM hacking
- ๐ Rich Events - 21+ events for fine-grained control
โ See complete feature matrix (163 features)
WPF HexEditor uses multi-targeting for maximum compatibility:
| Framework | Version | Performance Level |
|---|---|---|
| .NET Framework | 4.8 | โก Fast (99% rendering, LRU cache, parallel) |
| .NET | 8.0-windows | โกโกโก Blazing (+ Span<T>, SIMD, PGO) |
Single NuGet package works for both! The correct binary is automatically selected based on your project's target framework.
Recommendation: Use .NET 8.0 for maximum performance (Span<T>, SIMD, Profile-Guided Optimization).
| Bug | V1 Status | V2 Status |
|---|---|---|
| Issue #145: Insert Mode | โ FIXED (commit 405b164) | |
| Save Data Loss | โ FIXED (multi-MB corruption resolved) | |
| Search Cache Invalidation | โ FIXED (all 11 modification points) | |
| Binary Search O(m)โO(log m) | โ FIXED (100-5,882x faster) |
All production-critical bugs resolved. V2 is production-ready. โ
โ See detailed bug fix documentation
WPF HexEditor is 100% free and open source (Apache 2.0). It can be used in personal projects, commercial applications, and everything in between.
This project is developed in free time by passionate contributors. If you find it useful:
- โญ Star this repository - It helps others discover the project!
- ๐ด Fork and contribute - Pull requests are always welcome
- ๐ฌ Share feedback - Report bugs or suggest features
- ๐ Improve documentation - Help others get started
Every star motivates us to keep improving! ๐
We welcome contributions! The comprehensive documentation makes it easy to understand the codebase:
- Architecture Guide - Service-based design overview
- 19 READMEs - Every component documented
- ByteProvider Tests - Core functionality tested
- 7+ Samples - Working examples
How to contribute:
- Fork the repository
- Create a feature branch
- Make your changes (see Architecture Guide for design patterns)
- Test your changes
- Submit a pull request
โ See contribution guidelines
Apache License 2.0 - Free for personal and commercial use.
See LICENSE file for details.
- ๐ Bug Reports: GitHub Issues
- ๐ก Feature Requests: GitHub Discussions
- ๐ Documentation: Complete Documentation Map
- ๐ง Email: [email protected]
โจ WPF HexEditor V2 โจ
A powerful, well-documented hex editor control for .NET
Created by Derek Tremblay (abbaye)
V2 Contributor: Claude Sonnet 4.5
V1 (Legacy) Contributors: ehsan69h, Janus Tida
Coded with โค๏ธ for the community! ๐๐ค (with a touch of AI magic โจ)
๐ Quick Start โข ๐ Tutorial โข ๐ Features โข ๐ Migration โข โญ Star Us








