Encoding Convert — Change Text File Encoding (UTF-8, ASCII, ISO)
Convert text encoding between UTF-8, ASCII, ISO-8859-1, Windows-1252, and more. Fix garbled characters instantly. Free tool.
Garbled characters, missing accents, and mysterious question marks usually mean a text file is being read in the wrong encoding. The MyPDF Encoding Convert tool detects the source encoding and converts your file to the target encoding, fixing mojibake and ensuring your text displays correctly everywhere.
How to Convert Text Encoding
- Upload — Drop your text file into the tool. The source encoding is auto-detected.
- Configure — Confirm the detected source encoding and select the target encoding (e.g., UTF-8).
- Download — Save the re-encoded file with correct character representation.
Common Encodings
| Encoding | Characters Supported | Common Usage |
|---|---|---|
| UTF-8 | All Unicode (1.1M+) | Web standard, modern apps |
| ASCII | 128 characters (English only) | Legacy systems, protocols |
| ISO-8859-1 (Latin-1) | Western European languages | Older European websites |
| Windows-1252 | Western European + extras | Legacy Windows applications |
| Shift_JIS | Japanese | Japanese legacy systems |
| GB2312 / GBK | Simplified Chinese | Chinese legacy systems |
Practical Tips
- Always prefer UTF-8. It supports every character in Unicode and is the web standard. When in doubt, convert to UTF-8.
- Add a BOM only when required. Some Windows applications expect a UTF-8 BOM (Byte Order Mark). The tool lets you choose whether to include it.
- Detect before converting. If you are unsure of the source encoding, let the auto-detection analyse the byte patterns first. Converting from the wrong source encoding will produce new garbled text.
What is mojibake and how does this tool fix it?
Mojibake is garbled text caused by reading a file with the wrong encoding (e.g., opening a UTF-8 file as ISO-8859-1). This tool converts the file to the correct encoding, restoring the original characters.
Will converting encoding change the file content?
The text content remains the same — only the byte representation changes. Characters not available in the target encoding may be replaced with a fallback character (e.g., ?), so always choose an encoding that supports your character set.
Can I convert CSV files?
Yes. CSV files are plain text, so encoding conversion works on them directly. This is common when importing data between systems that use different encodings.
Related Tools
- Extract Text — Extract text from documents in any format.
- Text Diff — Compare two text files to spot differences.
- Word Count — Count words and characters in documents.
- JSON Beautify — Format JSON files for readability.