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

Convert UTF8 to HZ Encoding

Encode Simplified Chinese UTF-8 text into 7-bit RFC 1843 HZ-GB-2312 (`~{ ... ~}`) using the complete 7,445-character GB2312 repertoire.

Reference & UTF-8 Spec RFC 3629
Switches into 7-bit GB2312 mode with "~{" and returns to ASCII with "~}"
Literal tilde "~" escapes to "~~"; high bit stripped (GB byte & 0x7F)!
你好~{Dc:C~}
世界~{J@=g~}
Literal ~~~
RFC 1843 HZ-GB-2312
7-Bit HZ Encoded Output

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

Session Calculation Log

No entries recorded in this session yet.

How Convert UTF8 to HZ Encoding Works

Convert UTF8 to HZ Encoding implements the complete RFC 1843 HZ-GB-2312 specification across all 7,445 Simplified Chinese GB2312 characters, wrapping 7-bit stripped GB pairs inside `~{` and `~}` escape delimiters.

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 1843 7-Bit GB2312 Escape Framing

ASCII mode -> literal bytes ("~" becomes "~~")
Enter GB2312 mode -> "~{" + pairs of 0x21..0x7E (EUC-CN bytes with bit 7 cleared)
Exit GB2312 mode  -> "~}"

HZ-GB-2312 allowed Chinese Usenet and email messages in the 1990s to traverse strictly 7-bit ASCII mail relays without Base64 expansion.

Worked Reference Examples

InputOutputTechnical Note
This is in GB: 你好世界!This is in GB: ~{Dc:CJ@=g~}!100% 7-bit ASCII
北京~{11>)~}Complete GB2312 table
~~~Escaped tilde

Practical Developer & Systems Workflows

Legacy Chinese Usenet & RFC 1843 Interop

Encode Simplified Chinese text into exact 7-bit HZ-GB-2312 payloads.

Encoding Benchmark & History

Compare 7-bit HZ against UTF-8 and Base64.

Compatibility, Edge Cases & Best Practices

Built dynamically against the browser’s full WHATWG `gb18030` decoder so all 7,445 GB2312 Hanzi and punctuation map accurately.

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 do ~{ and ~} mean in HZ-GB-2312?
`~{` shifts the stream from 7-bit ASCII into 2-byte 7-bit GB2312 Hanzi mode, and `~}` shifts back to ASCII.
Does this support the full GB2312 Chinese character set?
Yes — all 7,445 GB2312 characters are indexed directly from the browser’s built-in WHATWG GB table.
How is a literal tilde (~) represented in HZ encoding?
A literal `~` in ASCII mode is escaped as `~~`.