Formula & Calculator
Character Encoding Converter
The Character Encoding Converter is a comprehensive online tool that allows you to convert text between different character encodings. In the digital world, text can be stored in many different encodings – UTF-8, UTF-16, ISO-8859-1 (Latin-1), Windows-1252, and many more. When you open a file or receive data, it may be in an encoding that is not compatible with your system, leading to garbled characters (like 'mojibake'). This converter helps you fix that by letting you select the source and target encodings and then performing the conversion. It is a lifesaver for developers, data analysts, and anyone who deals with text from different sources. You can paste your text, choose the input encoding (or let the tool auto‑detect), and then choose the output encoding. The tool will display the correctly converted text. It supports a wide range of common encodings and is essential for internationalization and data processing.
Conversion Steps
0 steps| # | Char | Source (Hex) | Target (Hex) |
|---|---|---|---|
| Enter text to see conversion steps | |||
| Encoding | Description | Byte Order |
|---|
Variables
| Symbol | Quantity | Unit |
|---|---|---|
| Text Input | Text | String |
| Source Encoding | Input Encoding | e.g., UTF-8, ISO-8859-1 |
| Target Encoding | Output Encoding | e.g., UTF-16, Windows-1252 |
What it means
Character encoding conversion is the process of translating text from one character encoding scheme to another. This ensures that text is correctly displayed and processed across different systems and platforms.
Worked example
Example 1 – Convert UTF-8 Text to UTF-16
Basic Example| Parameter | Value |
|---|---|
| Input Text | Hello World |
| Source Encoding | UTF-8 |
| Target Encoding | UTF-16 |
Example 2 – Fix Garbled Text (Mojibake)
Encoding Repair| Parameter | Value |
|---|---|
| Displayed Text | é |
| Incorrect Encoding | Windows-1252 |
| Correct Encoding | UTF-8 |
Example 3 – Convert Multilingual Text
Real-World| Parameter | Value |
|---|---|
| Input Text | Hello, 世界! |
| Source Encoding | UTF-8 |
| Target Encoding | ISO-8859-1 (where supported) |
Common mistakes
- Choosing the wrong source encoding, leading to incorrect conversion.
- Assuming that all text is UTF-8 – many older systems use other encodings.
- Not handling BOM (Byte Order Mark) when reading UTF-16 files.
- Converting text that contains characters not representable in the target encoding (e.g., emojis in ISO-8859-1).
- Forgetting that some encodings are single‑byte and cannot represent all Unicode characters.
- Confusing the encoding name (e.g., 'CP1252' vs 'Windows-1252').
Applications
- Fix garbled text (mojibake) by converting to the correct encoding.
- Prepare data for systems that require specific encodings.
- Handle text from different countries and languages.
- Convert legacy data to modern UTF-8.
- Ensure proper display of text in applications.
- Learn about character encodings and their differences.