Free Online Utility • UTF-8 Studio • RFC 3629 Engine

Convert UTF8 to Bytes

Convert UTF-8 text into exact raw byte arrays formatted as Hex, 0x C/JS arrays, Decimal, Binary, or Python/Rust byte string literals.

Reference & UTF-8 Spec RFC 3629
1B: 0xxxxxxx | 2B: 110xxxxx 10xxxxxx
3B: 1110xxxx 10xxxxxx×2 | 4B: 11110xxx 10xxxxxx×3
H (1B)48
é (2B)C3 A9
🌍 (4B)F0 9F 8C 8D
RFC 3629 UTF-8 BYTE STREAM
Encoded Byte Array

        
100% client-side RFC 3629 UTF-8 Engine Instant

Session Calculation Log

No entries recorded in this session yet.

How Convert UTF8 to Bytes Works

Convert UTF8 to Bytes serializes UTF-8 strings into exact 8-bit octets formatted as space-separated hex, C/JavaScript `0x` arrays, decimal integers, 8-bit binary, or Python `b"\x.."` literals with optional `EF BB BF` BOM.

UTF-8 (RFC 3629) is the dominant variable-width character encoding of the web, representing every Unicode scalar value from U+0000 to U+10FFFF in 1 to 4 self-synchronizing bytes while remaining 100% backward-compatible with 7-bit ASCII. Every conversion and analysis in this tool executes locally inside your browser with zero server uploads, preserving full privacy and instant response times.

RFC 3629 Byte Serialization

bytes = new TextEncoder().encode(text)
Optional UTF-8 BOM prepends [0xEF, 0xBB, 0xBF]

Exporting ready-to-paste `Uint8Array` or Python `bytes` literals makes writing unit tests and wire-protocol fixtures instantaneous.

Worked Reference Examples

InputOutputTechnical Note
Hello 🌍!48 65 6C 6C 6F 20 F0 9F 8C 8D 2111 UTF-8 bytes
Café €43 61 66 C3 A9 20 E2 82 AC9 UTF-8 bytes
With BOMEF BB BF ...+3 BOM bytes

Practical Developer & Systems Workflows

Unit Test Fixtures & Wire Captures

Generate exact `0x` or Python `b"\x.."` byte arrays for parsers.

CSV Excel Compatibility

Inspect exact `EF BB BF` UTF-8 BOM headers used by Excel CSV imports.

Compatibility, Edge Cases & Best Practices

RFC 3629 recommends omitting the UTF-8 BOM except when required by legacy tools like Microsoft Excel CSV.

Copy verified outputs directly to your clipboard or export clean UTF-8 files ready for source repositories, REST APIs, database migrations, protocol test suites, and systems debugging.

Frequently Asked Questions

What is the UTF-8 BOM (EF BB BF)?
It is the UTF-8 encoding of U+FEFF (Zero Width No-Break Space) placed at the start of some files (such as Excel CSVs) to signal UTF-8 encoding.
Can I export a ready-to-paste JavaScript or C byte array?
Yes — choose JS/C Array in Byte Format.
How many bytes does an emoji take in UTF-8?
Standard Plane 1 emojis take 4 UTF-8 bytes (e.g. `F0 9F 8C 8D` for 🌍).