Utvikling · verktøy

Hex-redigerer

Lim inn heksadesimale byteverdier eller velg en liten fil. Originalen endres aldri.

Kjøres i nettleseren. Ingen opplasting.

Values are processed locally in this browser.

Result

—

Om verktøyet

Hex-redigerer sem complicação.

Denne nettleserbaserte redigereren begrenser inndatastørrelsen for å beskytte minnet. Den oppretter en separat utdatafil; binære forhåndsvisninger viser ikke nødvendigvis alle tegnkodinger riktig.

Veiledning

Slik bruker du Hex-redigerer

The Hex Editor turns a list of hexadecimal bytes into a classic dump with an offset, the bytes and a text column, and lets you download those bytes as a new file. You can paste bytes or pick a file. It works in memory in your browser, nothing is uploaded and your original file is never changed. It is a small viewer and byte editor, not a full binary file tool.

Slik gjør du

  1. Paste hex bytes into the box, separated by spaces, commas or new lines. Each byte is one or two hex digits, with or without a 0x in front, such as 48 65 6c or 0x48,0x69.
  2. Or press Choose a file and pick a small file. When you press Calculate, the tool reads its bytes and writes them into the box as hex.
  3. Press Calculate. The result shows 16 bytes per line: an eight-digit offset, the bytes in hex and a text column where bytes 32 to 126 appear as characters and the rest as dots. A Download link for the bytes appears.
  4. To change bytes, edit the hex text with no file chosen and press Calculate again, then download usefulverse-edited.bin. Press Clear to empty the box and the file choice.

Eksempler

Dump the text Hello, World!

Du skriver inn
Hex
48 65 6c 6c 6f 2c 20 57 6f 72 6c 64 21 0a 00 ff 41
Du får
Dump
00000000 48 65 6c 6c 6f 2c 20 57 6f 72 6c 64 21 0a 00 ff Hello, World!... 00000010 41 A

Seventeen bytes make two lines. The second line starts at offset 10 in hex, which is 16 in decimal. The new line, the zero byte and ff are not printable, so each shows as a dot.

Kjørt med verktøyets egen kode.

Prefixes and commas

Du skriver inn
Hex
0x48,0x69
Du får
Dump
00000000 48 69 Hi

A 0x prefix is removed and commas count as separators. Capital and small hex letters are both fine, and a tab or new line also separates bytes.

Kjørt med verktøyets egen kode.

Three digits in one byte

Du skriver inn
Hex
123
Du får
Melding
Enter 1–65,536 hex bytes separated by spaces or commas.

A byte can have only one or two hex digits. Running bytes together, such as 48656c, is refused too, and so are an empty box, the letters zz and more than 65,536 bytes.

Kjørt med verktøyets egen kode.

Exactly 65,536 bytes

Du skriver inn
Hex
41 repeated 65,536 times
Du får
Linjer
4096
Siste linje
0000fff0 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 AAAAAAAAAAAAAAAA

This is the largest input the dump accepts, 64 KiB. With 65,537 bytes, the same tool shows the error message instead.

Kjørt med verktøyets egen kode.

Når det er nyttig

  • Look at the raw bytes of a short snippet to see which characters or control bytes it holds.
  • Build a few bytes by hand, such as a small test file, and download them.
  • Change one or two bytes in a short sample and save the result as a separate file.
  • Learn how hex offsets, bytes and a text column line up in a classic hex dump.

Begrensninger

  • The dump accepts 1 to 65,536 bytes (64 KiB) of hex text. More, an empty box, or any item that is not one or two hex digits shows the message about 1–65,536 hex bytes.
  • The file picker accepts files up to 1 MiB, but the dump still accepts only 65,536 bytes. By the code, a file between 64 KiB and 1 MiB is read and then refused with the same hex-bytes message.
  • While a file is chosen, each Calculate reads the file again and replaces the text in the box, which would overwrite edits. To edit a file's bytes, copy the hex, press Clear, paste it back and edit it there.
  • It has no search, undo, offset jump, checksum or encoding choice. The text column shows only printable ASCII, so other characters appear as dots.

Tips

  • Keep your original file. The tool never overwrites it and gives you a new file called usefulverse-edited.bin.
  • Write each byte with two digits, such as 0a rather than a, so the dump and your input line up easily.
  • Remember that a dot in the text column can be a real full stop (byte 2e) or any byte that cannot be shown, so check the hex next to it.

Vanlige spørsmål

Sobre Hex-redigerer.

How do I open a file as hex bytes?

Press Choose a file, pick a small file and press Calculate. The tool reads its bytes in your browser and writes them into the box as hex before showing the dump. Because of the 65,536-byte limit, only files up to 64 KiB give a dump.

What do the dots in the text column mean?

The text column shows a character only for bytes from 32 to 126, which are the printable ASCII characters. Every other byte, including new lines, zero bytes and values from 127 up, appears as a dot. A real full stop looks the same.

Does the hex editor change my original file?

No. Your file is only read, and the editor works on a copy of its bytes in memory. When you press Calculate, a download link for a new file called usefulverse-edited.bin appears, built from the hex currently in the box.

Is my file uploaded to a server?

No. The bytes are read and shown in your browser tab, and the download is created in your browser as well. Nothing is sent to a server, and the tool does not store the bytes after you leave the page.

How many bytes can I edit?

Up to 65,536 bytes, which is 64 KiB. The file picker itself allows files of up to 1 MiB, but bigger input is refused when the dump is made. Use a different tool for large files or for patching real programs.

Can I paste hex with no spaces?

No. Bytes must be separated by spaces, commas or new lines, and each one has one or two hex digits. A run such as 48656c6c6f is read as a single too-long item and rejected. Add a space after every two digits first.

What is the number at the start of each line?

It is the offset, written in hex with eight digits, of the first byte on that line. Each line holds 16 bytes, so the offsets go 00000000, 00000010, 00000020 and so on, which is 0, 16, 32 in decimal.

Hvordan bruker du Hex-redigerer?

Lim inn heksadesimale byteverdier eller velg en liten fil. Originalen endres aldri.

Lastes dataene mine opp til en server?

Nei. Behandlingen skjer i nettleseren din, og opplysningene dine lastes ikke opp.