Questions tagged [hex-editors]

A hex editor is an editor that allows the user to manipulate a file on the bit level by displaying this file as its hexadecimal representation.

A hex editor is a piece of software that allows its user to edit files bit by bit. To achieve this, hex editors display the hexadecimal representation of the file being edited.

Hexadecimal means base 16; after 9 comes A-F, only then comes 10. This is convenient since it means every digit represents exactly 4 bits, which makes it easy to construct and/or recognise specific bit patterns when working with hexadecimal.

156 questions
386
votes
4 answers

Need a good hex editor for Linux

I need a good hex editor for Linux, and by good I mean: Fast Has search/replace features Can display data not only in hex, but also binary, octal, etc. Can work with huge (> 1 GB) files without becoming slow and unresponsive (this requirement is…
user500944
197
votes
6 answers

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

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.
Mike Akers
  • 12,039
  • 14
  • 58
  • 71
71
votes
3 answers

How do I see a bin file in a hex editor in Visual Studio Code?

I have a bin file holding all my instruction cache and data cache for my Verilog project, and I want to see it as the Notepad++ hex editor shows its meaning, hex representation view. Is there a way to configure this? Or maybe an extension that…
bubismark
  • 861
  • 1
  • 6
  • 8
68
votes
12 answers

How to edit a binary file on Unix systems

On Windows machines there are lots of third-party editors available to edit a binary file. How can I edit a binary file on a Unix system?
Hemant
  • 3,893
  • 6
  • 27
  • 22
50
votes
6 answers

Where is hex code of the "EOF" character?

As far as know in the end of all files, specially text files, there is a Hex code for EOF or NULL character. And when we want to write a program and read the contents of a text file, we send the read function until we receive that EOF hexcode. My…
user3739941
48
votes
2 answers

Use Notepad++ as HEX-Editor

I'm using Notepad++, version 7.8.5 64bit on Windows 10. I'd like to use it as a Hex Editor. I open a binfile, but Notepad shows it to me as a text with strange characters. In order to visualize the Hex-numbers, I select a part of the text, go and…
Uwe_98
  • 697
  • 1
  • 8
  • 21
43
votes
3 answers

How are char arrays / strings stored in binary files?

When I compile this code using different compilers and inspect the output in a hex editor I am expecting to find the string "Nancy" somewhere. #include int main() { char temp[6] = "Nancy"; printf("%s", temp); return…
ntu
  • 449
  • 4
  • 4
41
votes
10 answers

How to strip CR (^M) and leave LF (^J) characters?

I am trying to use Hexl mode to manually remove some special characters from a text file and don't see how to delete anything in Hexl mode. What I really want is to remove carriage return and keep linefeed characters. Is Hexl mode the right way to…
Brandon Leiran
  • 5,343
  • 3
  • 20
  • 17
38
votes
4 answers

Excel VBA Password via Hex Editor

I have used the "Hex Editor to modify DPB to DPx" many times in the past to bypass VBA project security on my old Excel VBA projects (.xls), so I definitely know how to do it and know that I can do it. However I have just tried to do it yesterday…
BlueSkies 2020
  • 533
  • 1
  • 5
  • 7
24
votes
6 answers

Can someone explain hex offsets to me?

I downloaded Hex Workshop, and I was told to read a .dbc file. It should contain 28,315 if you read offset 0x04 and 0x05 I am unsure how to do this? What does 0x04 mean?
user20256
  • 453
  • 1
  • 4
  • 11
14
votes
3 answers

How to get vim to show a byte-by-byte representation of file data

I don't want vim to ever interpret my data in any encoding specific way. In other words, when I'm in vim, I want the character that my cursor is on to correspond to the actual byte, not a utf* (etc.) representation of that byte. I need to use vim…
Jesse Hogan
  • 3,075
  • 2
  • 16
  • 17
12
votes
5 answers

How does Windows Notepad interpret characters?

I was wondering how Windows interprets characters. I made a file with a hex editor with the 3 bytes E3 81 81. Those bytes are the ぁ character in UTF-8. I opened the notepad and it displayed ぁ. I didn't specify the encoding of the file, I just…
nEAnnam
  • 1,246
  • 2
  • 16
  • 22
11
votes
2 answers

How do I decompile a .hex file into C++ for Arduino?

I have a hex file that is to be flashed onto an Atmel chip running on an Arduino device. There are certain aspects of this file that I would like to modify before putting it onto my Arduino, but I don't have the source C++; just the hex file. Is…
Matt Cashatt
  • 23,490
  • 28
  • 78
  • 111
9
votes
3 answers

Why does inserting characters into an executable binary file cause it to "break"?

Why does inserting characters into an executable binary file cause it to "break" ? And, is there any way to add characters without breaking the compiled program? Background I've known for a long time that it is possible to use a hex editor to change…
Steve Brown
  • 1,336
  • 4
  • 16
  • 20
9
votes
1 answer

finding integer declared variables in ELF executable using a hex editor

i want to change the value of an integer declared variable in an executable, by using the hex editor only suppose i know that there's a variable type int declared in the code and the variable is this: int value = 1337; i want to edit the…
Mustapha
  • 167
  • 1
  • 3
  • 11
1
2 3
10 11