Text Encoder Decoder

Convert text between different encoding formats including Unicode, UTF-8, GBK, ASCII, Base64, URL encoding, and more. Full Chinese character support included.

Select Encoding Type

Base64 encoding is a method to represent binary data using 64 printable characters

Text to Base64
Convert plain text to Base64 encoding
Base64 to Text
Convert Base64 encoding to plain text
Input
Output
Encoding Format Introduction

Base64 Encoding

Base64 is an encoding method that represents binary data using 64 printable characters. It's commonly used to transmit longer identification information in HTTP environments or binary data in email systems.

Features: Encoded data size is approximately 4/3 times the original data, using 64 characters: A-Z, a-z, 0-9, +, /.

URL Encoding

URL encoding (percent encoding) is an encoding mechanism used to safely transmit special characters in URLs. It converts unsafe characters to % followed by two hexadecimal digits.

Applications: Web form submission, URL parameter passing, preventing special characters from causing parsing errors in URLs.

Unicode Encoding

Unicode is an international standard character set that provides a unified encoding scheme for most writing systems in the world. Unicode escape sequences use \u followed by 4 hexadecimal digits to represent characters.

Advantages: Supports characters from all languages worldwide, including Chinese, Japanese, Korean, Arabic, etc.

UTF-8 Encoding

UTF-8 is a variable-length encoding method for Unicode, using 1-4 bytes to represent a character. ASCII characters still use 1 byte, while Chinese characters typically use 3 bytes.

Features: Backward compatible with ASCII, standard encoding for Web and modern systems, saves storage space.

GBK Encoding

GBK is an extension of the Chinese national standard GB2312, supporting Simplified Chinese, Traditional Chinese, and other characters. Each Chinese character is represented by 2 bytes.

Applications: Mainly used in Chinese Windows systems, compatible with GB2312, contains 21,003 Chinese characters.

ASCII Encoding

ASCII (American Standard Code for Information Interchange) is a character encoding standard based on the Latin alphabet, using 7-bit binary numbers to represent 128 characters, including English letters, numbers, and control characters.

Range: 0-127, includes uppercase and lowercase letters, digits 0-9, punctuation marks, and control characters.

Hexadecimal Encoding

Hexadecimal is a base-16 number system using 0-9 and A-F. It's commonly used to represent binary data, with each byte represented by two hexadecimal digits.

Uses: Program debugging, memory address representation, color codes, encryption algorithms, and other technical fields.

Binary Encoding

Binary is the fundamental number system for computers, using only two digits: 0 and 1. All computer data is ultimately stored and processed in binary form.

Features: Each character is typically represented by 8 bits (1 byte) of binary data, forming the foundation of internal computer data representation.

Usage Instructions

Features

  • Real-time text encoding and decoding
  • Support for multiple encoding formats
  • Bidirectional conversion between any formats
  • One-click copy functionality
  • Chinese encoding example for testing
  • Swap encoding formats instantly

How to Use

  1. Select the desired encoding type from the tabs and choose conversion direction
  2. Enter or paste your text in the input area (Chinese characters supported)
  3. The converted text will appear automatically in the output area
  4. Use the copy button to copy the result to clipboard
  5. Use "Swap" button to reverse the conversion direction
  6. Use "Example" button to load sample text for testing
  7. UTF-8: Shows byte encoding of Chinese characters
  8. GBK: Shows GBK encoding representation of Chinese characters