Convert UTF-8 to Hexadecimal
Convert UTF-8 text to hexadecimal (5 formats, case, grouping). Bidirectional. Emoji-safe. Free, client-side, instant, secure.
- Runs in your browser
- Nothing uploaded
- Free, no sign-up
Convert UTF-8 text to hexadecimal bytes in 5 formats: continuous, space-separated, colon-separated, 0x-prefixed, C-style array. Bidirectional, multi-byte safe. (This is the same operation as the UTF-8 to Hex tool - "hexadecimal" spelt out.)
Per-character breakdown
How to Use Convert UTF-8 to Hexadecimal
- Paste UTF-8 text.
- Pick output format: space-separated for human readability, continuous for compact embedding, colon for MAC-style,
0x-prefixed for language literals, C-array for direct paste. - Choose case for A-F digits.
- Optionally group by N bytes for 16-bit words or 32-bit dwords.
- Swap to decode: parser strips braces, commas,
0x, colons, whitespace, then runs fatal-modeTextDecoder.
Frequently Asked Questions
What’s “hexadecimal” here?
Base 16. Each UTF-8 byte (0-255 decimal) becomes a 2-character hexadecimal token (00-FF). ASCII characters get 1 byte → 2 hex chars; multi-byte characters expand proportionally.
Is this the same as the UTF-8 to Hex tool?
Yes. “Hex” and “Hexadecimal” mean the same thing. Both tools produce identical output and accept the same input. They exist as separate slugs because users search both terms. If you find a behaviour difference, it’s a bug – please report it.
How does emoji work?
UTF-8 multi-byte sequences are extracted via TextEncoder. 🌍 (U+1F30D) becomes 4 hex tokens: F0 9F 8C 8D. Naive implementations that loop charCodeAt would see UTF-16 surrogate pairs (D83C DF0D) instead – wrong output.
What does “group by N” do?
Concatenates N consecutive bytes into single tokens before separator. Useful for visualising 16-bit (group=2), 32-bit (group=4), or 64-bit (group=8) words.
Reverse decoder format support?
Strips braces, commas, 0x prefixes, colons, all whitespace. Remaining characters must be hex (0-9, A-F, case-insensitive) and the count must be even. Invalid UTF-8 byte sequences throw via fatal mode.
Does this support endianness?
No. UTF-8 has no endianness (RFC 3629 design) – it’s a byte stream, not multi-byte integers. Endianness only applies to UTF-16 / UTF-32. If you need byte-order options, your data probably isn’t UTF-8.
What’s the hex/byte ratio?
Exactly 2 hex characters per byte (plus separator chars if any). So encoding overhead is 2× the UTF-8 byte count. ASCII text doubles in size; mixed Latin roughly 2.6×; emoji ~8× the input character count.
Is text uploaded?
No. The conversion runs entirely in your browser – nothing is sent to a server, logged, or stored, and the tool keeps working offline once the page has loaded.
Input cap?
200,000 characters. Hex output peaks at 2× plus separators.
How does this compare to the UTF-8 to Bytes tool?
The Bytes tool exposes hex, decimal, AND binary plus prefix options. This Hexadecimal tool is hex-specific with 5 output formats for direct paste into different contexts.
Related Tools
Convert Hexadecimal to UTF-8 →
Decode hex to UTF-8 text with byte-structural breakdown. Handles ASCII, Latin, CJK, emoji. Batch…
Binary to UTF-8 Decoder →
Binary to UTF-8 Text Decoder handles emoji, CJK, accents, strips BOM, counts replacement chars.…
Convert Arbitrary Base to UTF-8 →
Decode numeric tokens in any base (2-36) as UTF-8 bytes - multi-byte emoji and…
Base64 to UTF-8 Decoder →
Decode Base64 to UTF-8 text - handles emoji, CJK, BOM-stripping, URL-safe variants. Free, client-side,…
Convert Bytes to UTF-8 →
Convert Bytes to UTF-8 Decode decimal/hex/binary byte values to UTF-8 text - emoji, CJK,…
Code Points to UTF-8 Converter Free →
Free online Unicode code points to UTF-8 converter. Shows actual UTF-8 byte sequences per…
Convert Data URI to UTF-8 →
online Data URI to UTF-8 decoder with byte-breakdown panel for emoji and CJK. Client-side,…
Convert Decimal to UTF-8 →
online decimal to UTF-8 text decoder. Byte-mode (raw UTF-8 bytes) and codepoint-mode. Client-side, instant,…
Convert HTML Entities to UTF-8 →
Decode HTML entities to UTF-8 with per-character byte breakdown. Named, decimal, hex. Free, offline,…
Convert Octal to UTF-8 →
Decode octal byte sequences to UTF-8 text, encode UTF-8 to octal. C-escape support, multi-byte.…
Convert UTF-16 to UTF-8 →
Convert UTF-16 code units to UTF-8 text and bytes. 3 formats, BE/LE, BOM, surrogate…
Convert UTF-32 to UTF-8 →
Convert UTF-32 code points to UTF-8 text and bytes. 3 formats, BE/LE, BOM, strict…