This Text To HEX conversion is local: UTF-8 encoding, sizing, formatting, display, and clipboard preparation run in your browser, and neither the input nor the output is uploaded to Lizely.
Calling the process “safe” should distinguish three separate questions: Does the text leave the browser? Does the hexadecimal accurately represent the intended UTF-8 bytes? Can the tool produce the entire requested output without silently shortening it? This tool has explicit answers for all three, although hexadecimal itself is not encryption or secret protection.

What makes the conversion trustworthy
A reliable text-to-hex workflow needs more than a field that accepts unusual characters. It needs a defined encoding, a visible warning when conversion changes the input, presentation controls that do not alter the bytes, and hard size limits instead of silent truncation.
| Safety check | Verified behavior | Why it matters |
|---|---|---|
| Does the text leave the browser? | Encoding, sizing, formatting, display, and clipboard preparation run locally; input and output are not uploaded to Lizely. | The converter itself does not transmit the text. |
| Does the output represent UTF-8? | The browser TextEncoder produces UTF-8 bytes, and the result reports isolated-surrogate replacements. | You can check whether malformed input was altered before using the result. |
| Do output styles change the bytes? | Continuous, spaced, and 0x-prefixed formats are presentation choices over the same byte array. | Choose readable syntax without changing byte values. |
| Can large output be cut short? | Explicit input and output ceilings are checked, and oversized requests are rejected. | Failure is visible rather than hidden in a partial result. |
| Does hexadecimal conceal data? | Hex is a reversible representation of bytes, not encryption, hashing, or compression. | Use separate controls when confidentiality matters. |
These checks work together. Local processing addresses transmission, but it does not guarantee that every input is well-formed Unicode or that a requested output can fit within the limits. The result panel and rejection messages provide the remaining visibility.
Privacy starts inside the browser
Text To HEX uses the browser’s TextEncoder API rather than sending the text to a remote encoding endpoint. MDN’s TextEncoder.encode documentation describes the API and its byte-array output, while the WHATWG TextEncoder standard defines the standardized conversion behavior. The product performs its input check, byte count, replacement count, output-size calculation, formatting, and display in the current browser tab.
The clipboard is a separate boundary from the page itself. Copying places the completed hexadecimal result in the browser’s clipboard, where another application or clipboard manager may be able to read it. Local encoding prevents the converter from uploading the text; it does not make copied data secret. If clipboard permission is denied, the complete read-only result remains available for manual selection.
For a broader comparison of browser-side processing, command-line conversion, and other privacy considerations, review the privacy guide for text-to-hex tools. Hexadecimal output should still be handled according to the sensitivity of the original text.
Convert text with the verified browser workflow
- Open the Text To HEX converter and enter or paste your text. The input may contain Unicode, whitespace, and NUL data as long as the browser field can hold it. Empty input is not accepted.
- Choose continuous pairs, space-separated pairs, or space-separated 0x-prefixed tokens. Then select lowercase or uppercase hexadecimal digits. These choices affect presentation and output length, not the underlying UTF-8 bytes.
- Select Encode and review the result. Check the UTF-8 byte count, formatted output length, and replacement count. A nonzero replacement count means isolated UTF-16 surrogate code units were replaced with U+FFFD rather than encoded as their original values.
- Copy the complete hexadecimal output. If clipboard access is denied, manually select the read-only result instead. Editing the text, changing a format or case option, or starting a new encode clears the previous result, error, statistics, replacement warning, and copy status.
Do not treat the formatted output length as the number of characters you typed. Character count, UTF-8 byte count, and formatted output length are different measurements, and each one changes with the text or selected syntax.
Choose an output format without changing the bytes
Each UTF-8 byte becomes exactly two hexadecimal digits. The three formats arrange those same pairs differently, so select the representation required by the receiving system rather than treating one format as a different encoding.
| Format | Example for “Hi” | Length for n UTF-8 bytes | Practical use |
|---|---|---|---|
| Continuous | 4869 | 2n | Compact byte payloads |
| Space-separated | 48 69 | 3n − 1 | Byte-by-byte inspection |
| 0x-prefixed | 0x48 0x69 | 5n − 1 | Programming-style byte tokens |
For the two-byte UTF-8 text “Hi,” n = 2. The plain-output calculation is 2n = 2 × 2 = 4 code units, and the byte pairs 48 and 69 concatenate to 4869.
Uppercase mode changes only hexadecimal letters A through F; byte values remain unchanged, and the 0x marker stays lowercase. Spaced and prefixed formats place one ASCII space between tokens, with no delimiter before the first token or after the last. Because those spaces and prefixes count toward the output limit, a verbose format can reach that ceiling before the input limit.
Check UTF-8 fidelity, including edge cases
UTF-8 does not assign one fixed-width number to every visible character. ASCII characters occupy one byte, many common Latin characters occupy two, most characters in the Basic Multilingual Plane occupy three, and supplementary Unicode scalars occupy four. The byte count shown by the tool is therefore the important comparison when checking whether a result is complete.
- NUL U+0000 is encoded as the single byte 00. It is data, not a string terminator.
- Spaces, tabs, CR, and LF are encoded in the exact order supplied. The tool does not trim or convert line endings.
- Combining sequences are not normalized. An “e” followed by U+0301 remains that sequence unless the input itself was already composed.
- No case folding, escape parsing, locale-aware rewriting, newline conversion, or Unicode normalization is applied.
Replacement warnings identify malformed Unicode
Browser strings use UTF-16 code units. A valid high-plus-low surrogate pair represents one supplementary Unicode scalar and is encoded normally. An isolated high or low surrogate does not represent a Unicode scalar. Standardized TextEncoder conversion replaces each isolated surrogate with U+FFFD before UTF-8 encoding, producing the bytes EF BF BD. The result panel counts and visibly warns about these replacements because decoding the resulting bytes cannot recreate the original isolated code unit. Exact text-to-hex-to-text recovery therefore requires well-formed Unicode input.
BOM behavior remains explicit
TextEncoder does not prepend a UTF-8 byte order mark. Ordinary input begins directly with the first character’s bytes. If the input itself begins with U+FEFF, that character is encoded as EF BB BF because it is data, not metadata inserted by the encoder. The Hex to Text converter consumes a leading EF BB BF under its documented TextDecoder BOM behavior, so an exact round trip through that specific tool requires that the original text not begin with U+FEFF. A U+FEFF located elsewhere remains part of the text.
Large inputs have strict ceilings
Two independent limits determine whether the conversion can complete. Both are measured in UTF-16 code units rather than visible characters or UTF-8 bytes.
- Input limit: The field accepts at most 1,000,000 UTF-16 code units. Empty input is rejected, and one code unit above the limit is rejected with an explicit message.
- Formatted output limit: The result may contain at most 4,999,999 UTF-16 code units. The exact boundary is accepted, while one code unit above it is rejected.
Multi-byte Unicode in a spaced or 0x-prefixed format can reach the output ceiling before the input ceiling. The tool does not switch formats, slice the byte array, drop a suffix, or sample the content. It encodes the complete text first, calculates the required formatted length from the byte count and selected syntax, and checks that prediction against the output limit before building the large result string.
Formatting proceeds in bounded byte chunks, and every chunk is joined into the final output. The final string length is then checked against the validated prediction. This avoids silent shortening without changing the result. Stale clipboard feedback is also guarded against after an edit, newer encode, another copy attempt, or page unmount.
Know when hexadecimal is the wrong protection
Hexadecimal is useful when you need a readable representation of UTF-8 bytes, but it does not hide their meaning. Anyone with the bytes and the UTF-8 rules can recover well-formed text, subject to the selected decoder’s BOM behavior. Converting a password, token, or private message to hex therefore does not make it confidential.
- For UTF-16 code-unit values or Unicode scalar notation, use a converter designed for those representations rather than UTF-8 bytes.
- For Windows-1252, a locale-specific code page, or an ASCII-only fallback, do not assume that UTF-8 hexadecimal output is interchangeable with that legacy encoding.
- For confidentiality or authenticated protection, use an appropriate secret-management or encryption workflow. Hexadecimal alone provides neither.
The practical conclusion is narrow and useful: the converter processes text locally, reports the exact UTF-8 byte representation, exposes malformed-input replacements, and rejects work that exceeds its limits. Those properties make it suitable for deliberate UTF-8 encoding without hidden uploads or silent truncation, while leaving you responsible for how the copied result is handled.
Related reading: Is Unicode Encoder / Decoder Safe to Use Online?.