View files with a hex viewer

A practical guide to using a hex viewer for inspecting raw bytes, understanding text encoding, reversals, mirroring and copy/paste-safe output.

What a hex viewer answers directly

A hex viewer shows the raw bytes behind a file or text string, usually as hexadecimal values beside a decoded text column. This is the direct way to see what actually changed after a text transformation such as reversal, mirroring or Unicode style substitution. Instead of judging only by how characters look on screen, you can check the byte sequence and identify which code points are present.

Use a hex viewer when you need to distinguish Unicode character substitution from visual styling. For example, a styled or mirrored appearance may be produced by codepoints that look similar to Latin letters, while a CSS transform changes only rendering and leaves the underlying text unchanged. A hex view can reveal whether the output contains different Unicode characters or the same characters in a different order.

Text-order reversal and glyph mirroring are not the same operation. Reversal changes the sequence of codepoints. Mirroring changes which letterform is shown, often by selecting characters with a mirrored visual shape or by relying on bidirectional text rules. A hex viewer helps you verify which operation was applied and whether the result is still the intended sequence.

How to inspect transformed text in a hex viewer

Open the original file and the transformed file side by side. Compare the hexadecimal values first, then the text column. If only the display changed, the bytes will match the original. If the transformation produced new codepoints, the hex values will differ even when the glyphs look similar.

For short strings, you can copy the text into a hex conversion tool or a hex editor that accepts pasted input. For files, open them directly in a hex viewer. Look for encoding markers, byte order marks, combining characters and zero-width characters, which often affect display and copy behavior but are easy to miss in ordinary text.

Readability, reuse and copy/paste limits

Unicode-substituted text may survive copy and paste, but readability is not guaranteed. The destination application must support the substituted codepoints and have a font that includes the relevant glyphs. If it does not, the text may show as boxes, question marks or fallback characters. Reversed text can also become difficult to read when the word order is changed but punctuation, digits or spaces remain in their original positions.

Bidirectional display introduces another limit. Some mirroring changes are controlled by Unicode bidi rules rather than by changing characters. A hex viewer may show the same codepoints, yet the visual order changes depending on surrounding text direction. This can make output appear different across editors, chat applications or web pages.

Assistive technology such as screen readers may announce substituted characters unpredictably. A codepoint that looks like a Latin letter is not necessarily read as that letter. Reversed or mirrored text can therefore be inaccessible or confusing when read aloud. If the output is intended for messages, filenames, forms or documents that must be understood by software or people using assistive tools, prefer ordinary text unless the transformation is purely decorative.

When to avoid transformed text

An ordinary-text alternative is needed whenever accuracy, searchability or machine processing matters. Transformed text can break search, sorting, spell checking, input validation or data matching. A hex viewer can confirm that the output no longer matches expected plain-text values.

Sensitive text handling should also be considered before using an external conversion service. If the transformation is performed by a remote tool, the input may be transmitted and processed outside the user's control. Where this cannot be verified, a local hex editor or offline conversion script is safer for private or confidential content.

What cannot be stated with certainty

Specific destination applications vary in font support, bidi handling and accessibility behavior. Without testing the exact application and input, the final rendering and assistive-technology announcement cannot be predicted reliably. A hex view can show the actual codepoints, but it cannot guarantee how every system will display or speak them.

When documentation for a particular platform or screen reader is unavailable, state that the result is uncertain and recommend testing with the target environment. The hex viewer is most useful as an inspection step, not as a replacement for checking the actual user-facing output.

A practical checking sequence

  • Open the original and transformed files in a hex viewer.
  • Compare byte values in the hex column before checking the visual text column.
  • Look for new codepoints, combining characters, zero-width characters or byte order marks.
  • Copy the transformed text into the intended application and confirm readability.
  • Test with a screen reader or accessibility inspection where the output will be read aloud.
  • If the output must remain searchable or valid as data, keep ordinary text instead.

Example of a hex inspection

Original:  AB
Hex:      41 42

Reversed: BA
Hex:      42 41

Visible lookalike using a substituted codepoint:
АB
Hex:      D0 90 42

In the third line, the first character is not Latin A but a Cyrillic lookalike represented by a two-byte UTF-8 sequence. The hex view reveals the difference that visual inspection may miss.