Tiny Online Tools logoTiny Online Toolssearch搜索工具…grid_view全部工具
首页chevron_right开发者工具chevron_right文本编码转换器文本编码转换器

文本编码转换器

把文本转换为 UTF-8 十六进制字节、Base64 或百分号编码输出。

相似工具

图片转Base64

图片转Base64

将图片文件转换为Base64编码字符串。

Base64转图片

Base64转图片

将Base64字符串解码为图片文件。

SVG转CSS背景

SVG转CSS背景

将SVG代码转换为CSS background-image数据URL。

Base64 编码器

Base64 编码器

将文本编码为 Base64 格式。

能量转换器

能量转换器

即时在焦耳、千焦、卡路里、千卡、kWh、BTU 和电子伏特之间转换。

随机颜色生成器

随机颜色生成器

使用和谐规则生成随机调色板。

删除标点符号

删除标点符号

立即从文本中移除标点和符号。

apps

更多工具

浏览我们完整的免费在线工具集合。

转换 Text to Multiple Encoding 格式化s

Different systems expect text in different 格式化s: raw UTF-8 bytes (as hexadecimal), Base64-encoded for safe transmission, or percent-encoded for URLs. Switching between 格式化s manually is slow and error-prone. This Text Encoding 转换er instantly 转换s any text into all three 格式化s, letting you choose what you need.

Paste text and get the hexadecimal byte representation, Base64 encoding, and percent-encoded version simultaneously. Copy whichever 格式化 your system requires.

Three Encoding 格式化s

UTF-8 Hex Bytes: The raw bytes of the text as hexadecimal. Each character becomes one or more hex pairs:

  • A (ASCII) → 41
  • é (accented) → c3a9 (two bytes)
  • 😀 (emoji) → f09f98800 (four bytes)

This 格式化 is useful for:

  • Debugging byte-level encoding issues
  • Understanding how text is stored at the byte level
  • Working with systems that expect raw UTF-8 bytes
  • Cryptographic operations that work on byte streams

Base64: Text encoded in Base64, a standard encoding for transmitting binary data safely via text channels:

  • Input: Hello, World!
  • Output: SGVsbG8sIFdvcmxkIQ==

Base64 is used for:

  • Embedding binary data in text (JSON, XML)
  • Email attachments and message bodies
  • Data URIs for images and resources
  • API payloads that need text-safe encoding

Percent Encoding: URL-safe encoding where special characters become %XX sequences:

  • Space → %20
  • /%2F
  • Non-ASCII characters → UTF-8 bytes as percent sequences

Percent encoding is essential for:

  • URL query parameters
  • Form data submissions
  • URL-safe string representations
  • APIs requiring encoded parameters

Why You Need All Three 格式化s

Different contexts require different encodings:

  • Your API might need Base64-encoded payloads
  • URL parameters must be percent-encoded
  • Debugging bytes requires hex representation
  • Without a 转换er, you need three different tools

This tool provides all three at once, saving time and reducing context switching.

Common Developer Workflows

API Request Debugging: Encode request data in the 格式化s your API requires. Compare expected vs. actual encoding to debug transmission issues.

URL Parameter Encoding: 转换 query parameter values to percent-encoded 格式化, then copy and construct your URL.

Base64 Data Embedding: 生成 Base64-encoded data to embed in JSON, JavaScript data URIs, or email messages.

Byte-Level Debugging: See the exact byte representation of text when debugging encoding issues, comparing with actual bytes from logs or network traces.

Data Migration: 转换 text to required 格式化s before importing into different systems.

Cryptographic Testing: When testing crypto functions that work on byte streams, use the hex byte output.

Documentation & Examples: Show different encoding representations of the same text in documentation or specs.

All Three at Once

Enter text once, see all three 格式化s 生成d simultaneously. Copy whichever 格式化 you need without re-encoding.

Handles Multilingual Text

Works with ASCII, accented characters, emoji, Chinese, Arabic, Cyrillic—any Unicode text. The 转换er properly handles multi-byte UTF-8 sequences for all characters.

Copy Individual 格式化s

Each 格式化 has its own copy button, so you can quickly grab just the encoding you need.

100% 浏览器-Based Processing

Encoding happens entirely in your 浏览器 using JavaScript's native TextEncoder API and standard encoding libraries. Your text never leaves your machine, making this safe for sensitive data.