What's a good hex editor/viewer for the Mac?

MacosHexHex Editors

Macos Problem Overview


What's a good hex editor/viewer for the Mac? I've used xxd for viewing hexdumps, and I think it can be used in reverse to make edits. But what I really want is a real hex editor.

Macos Solutions


Solution 1 - Macos

To view the file, run:

xxd filename | less

To use Vim as a hex editor:

  1. Open the file in Vim.
  2. Run :%!xxd (transform buffer to hex)
  3. Edit.
  4. Run :%!xxd -r (reverse transformation)
  5. Save.

Solution 2 - Macos

  1. Open file with Xcode and press Command + Shift + J
  2. Right click file name in left pane
  3. Open as -> Hex

Solution 3 - Macos

One recommendation I've gotten is Hex Fiend.

Solution 4 - Macos

On http://www.synalysis.net/ you can get the hex editor I'm developing for the Mac - Synalyze It!. It costs 7 € / 40 € (Pro version) and offers some extra features like histogram, incremental search, support of many text encodings and interactive definition of a "grammar" for your file format.

The grammar helps to interpret the files and colors the hex view for easier analysis.

Synalyze It!

Solution 5 - Macos

I have recently started using 0xED, and like it a lot.

Solution 6 - Macos

There are probably better options, but I use and kind of like TextWrangler for basic hex editing. File -> hex Dump File

Solution 7 - Macos

The one that I like is HexEdit Quick and easy to use

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionMike AkersView Question on Stackoverflow
Solution 1 - MacosAyman HouriehView Answer on Stackoverflow
Solution 2 - MacoscrizCraigView Answer on Stackoverflow
Solution 3 - MacosMike AkersView Answer on Stackoverflow
Solution 4 - Macospi3View Answer on Stackoverflow
Solution 5 - MacospgbView Answer on Stackoverflow
Solution 6 - MacosPablo Santa CruzView Answer on Stackoverflow
Solution 7 - MacostwikView Answer on Stackoverflow