On Windows, text becomes hexadecimal by encoding its UTF-8 bytes in a browser, with each byte represented by exactly two hex digits.
For a Windows workflow that does not depend on the active system code page, use a browser-based UTF-8 converter and paste the source text into its input field. Encoding, sizing, formatting, and clipboard preparation run locally in the current browser tab; neither the input nor the generated hexadecimal is uploaded to Lizely.
The result is a UTF-8 byte representation, not a Windows-1252 conversion, a list of UTF-16 code units, or a secret-protection mechanism. After encoding, you can paste the copied hexadecimal into a Windows application that expects a hex string.

Convert text to hex on Windows
- Open Text To HEX in the browser on your Windows PC. The converter works in the current tab, so the text and result remain local.
- Paste or type the text into the input field. Include Unicode characters, spaces, tabs, and line breaks exactly as supplied. You can also enter NUL data if the browser field accepts it.
- Choose continuous, space-separated, or 0x-prefixed output. Then select lowercase or uppercase hexadecimal digits.
- Select Encode to convert the complete text into UTF-8 bytes and format those bytes as hexadecimal.
- Review the reported UTF-8 byte count, formatted output length, and replacement count. If an isolated-surrogate warning appears, correct the source text before relying on the result.
- Copy the complete hexadecimal output and paste it into the target Windows application. If clipboard access is denied, the read-only result remains available for manual selection.
Editing the text, changing the format or letter case, or starting a new encode clears the previous output, error, statistics, replacement warning, and copy status. Run the encoder again after any change so the displayed result always corresponds to the current input and options.
Choose the output syntax the destination expects
All three output formats represent the same UTF-8 byte array. They differ only in punctuation and formatted length, so choose the form required by the program, protocol, or document that will receive the hexadecimal.
| Output option | Exact presentation | Length for n UTF-8 bytes | When it is useful |
|---|---|---|---|
| Continuous | Byte pairs are concatenated with no delimiter. | 2n | A compact hexadecimal string is needed. |
| Space-separated | One ASCII space appears between byte pairs, with no leading or trailing space. | 3n−1 | Individual bytes should be easy to inspect. |
| 0x-prefixed | Each byte is written as 0xNN, and tokens are separated by one ASCII space. | 5n−1 | The destination expects explicit prefixed byte tokens. |
Uppercase mode changes only the hexadecimal letters a through f to A through F. It does not change the byte values or formatted output length, and the 0x marker remains lowercase. Changing between the three formats changes the displayed punctuation and length, but never the underlying UTF-8 bytes.
Worked example: the input Hi has UTF-8 bytes 48 and 69. For plain output, the formula 2n becomes 2 × 2 = 4 output digits, giving 4869. Displaying those same bytes with spaces or prefixes gives 48 69 or 0x48 0x69.
What the Windows conversion actually encodes
The converter always uses UTF-8. 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 active Windows locale does not change this rule.
| Input detail | Converter behavior |
|---|---|
| Empty input | Rejected before encoding. |
| NUL U+0000 | Encoded as byte 00; it is data, not a terminator. |
| Spaces, tabs, CR, and LF | Encoded in the order supplied. |
| Leading or trailing whitespace | Preserved rather than trimmed. |
| Combining sequences | No normalization occurs, so composed and decomposed forms remain as entered. |
| Explicit U+FEFF | Encoded as actual character data; the encoder does not add a BOM. |
There is no newline conversion, case folding, escape parsing, or locale-aware rewriting. A Windows paste containing CRLF line endings therefore remains in that form instead of being silently changed to LF. Likewise, the tool does not automatically compose a decomposed letter with a combining mark.
Why some Unicode round trips are not exact
The byte conversion follows the browser’s standardized TextEncoder behavior. The WHATWG TextEncoder encode specification defines the API, while MDN’s TextEncoder.encode documentation describes its byte-array output. The converter does not use UTF-16 code-unit values, an ASCII-only fallback, Windows-1252, a locale code page, or arbitrary numeric character codes.
JavaScript strings are UTF-16. A valid high-plus-low surrogate pair represents one supplementary Unicode scalar and is encoded normally. An isolated high or low surrogate is not a Unicode scalar, so the standardized conversion replaces each isolated surrogate code unit with U+FFFD, producing the UTF-8 bytes EF BF BD. The result panel visibly reports the replacement count, but decoding those bytes cannot reconstruct the original isolated code unit.
TextEncoder adds no byte order mark. If the input itself begins with U+FEFF, its actual bytes EF BB BF are encoded as data. The companion 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 the original not to begin with U+FEFF. An internal U+FEFF remains part of the text.
Windows size limits that can stop a conversion
The input limit is 1,000,000 UTF-16 code units, not 1,000,000 user-perceived characters or UTF-8 bytes. A supplementary Unicode scalar occupies a surrogate pair in a JavaScript string, so it consumes two input code units. Empty input and input above the maximum are rejected before encoding.
The formatted output limit is 4,999,999 UTF-16 code units. Its size depends on the UTF-8 byte count and the selected syntax. One million ASCII input characters in 0x-prefixed format produce exactly 4,999,999 output code units, and that exact boundary is accepted. One input code unit or one output code unit over the corresponding validator is rejected with an explicit message.
Multi-byte Unicode in a verbose format can reach the output budget before the input budget. When that happens, the tool does not switch formats, slice the byte array, drop a suffix, or sample the content. It encodes the full text, calculates the required formatted size from the byte count and selected syntax, and checks the limit before building the large output string. Formatting then proceeds in bounded chunks and joins every chunk, which reduces temporary allocation spikes without changing or capping the completed result.
Copying, checking, and using the hexadecimal safely
After a successful encode, review the UTF-8 byte count, formatted output length, and isolated-surrogate replacement count. The byte count describes the underlying UTF-8 data, while the formatted length includes the selected spaces and 0x markers. Use the copy control to retrieve the complete output. If clipboard permission is denied, manually select the read-only result instead.
Clipboard status is tied to the current result. Changing the text or options, beginning another encode, or making another copy attempt prevents an older clipboard response from restoring stale status. This matters on Windows when you paste into another application and then immediately return to revise the source text.
Hexadecimal is an encoding display, not encryption, hashing, compression, or secret protection. Anyone who has the bytes and the UTF-8 rules can recover well-formed text, subject to the chosen decoder’s BOM behavior. The conversion itself stays in the browser, but once you copy the result into another program, that copy follows the destination application’s handling and storage rules.
For a deeper look, see Decode URL Example: From %20 to Plain Text.
For a deeper look, see Vigenere Cipher Decoder for Large Text: Complete Workflow.