A safe convert-to-UTF-8 workflow is: confirm the file's actual source encoding, convert it, inspect representative non-ASCII characters, and test the downloaded UTF-8 copy before replacing the original.
This convert to UTF-8 cheat sheet applies to file conversion, not to text already pasted into an editor. Converting bytes to UTF-8 means decoding them with the encoding that actually produced them, then encoding the resulting characters as UTF-8. The order matters: choosing a plausible but wrong source can turn readable names, punctuation or symbols into different characters. The UTF-8 Converter supports this workflow for local text files, and its browser process does not upload the source bytes.

Choose the source encoding from evidence
Use the file's origin, not its appearance, to select a source mode. The producing application's export settings or reliable metadata are stronger evidence than a visual guess. Byte sequences can be valid under more than one legacy encoding while representing different characters, so apparently readable output is not proof that the selection was correct.
| Source mode | Select it when | Conversion behavior | Main caution |
|---|---|---|---|
| UTF-8 | The producer, export setting or reliable metadata identifies UTF-8. | The source is validated with fatal error handling before UTF-8 output is produced. | Invalid continuation bytes and truncated sequences cause a clear failure rather than silent replacement characters. |
| UTF-16LE | The source is identified as UTF-16 little-endian or stores the low byte first. | Byte pairs are decoded into Unicode characters and then encoded as UTF-8. | Reversing the byte order can make letters nonsense even while byte pairs remain readable. |
| UTF-16BE | The source is identified as UTF-16 big-endian or stores the high byte first. | Byte pairs are decoded into Unicode characters and then encoded as UTF-8. | Selecting little-endian for a big-endian source reverses the intended byte order. |
| Windows-1252 | The producer or reliable metadata identifies the Windows-1252 code page. | A standards-defined decoder maps legacy bytes to characters before UTF-8 re-encoding. | Windows-1252 is often mislabeled as ISO-8859-1, so confirm the actual code page. |
Do not choose a mode simply because one set of characters looks familiar. Legacy encodings can overlap, and a plausible preview may still contain corrupted names or punctuation. The UTF-8 Converter deliberately requires explicit source selection so the transformation remains auditable instead of probabilistic.
Convert the file without guesswork
- Determine the real source encoding. Check the producing application's export settings, file metadata or other authoritative information. If the source cannot be identified, obtain that information before converting; appearance alone is not a dependable basis for the choice. Preserve an untouched copy of the original file.
- Choose a local text file of 10 MB or less. The browser checks the size before reading the file and then processes it in memory. The source bytes are not uploaded to a server.
- Select the matching source mode and convert. Choose UTF-8, UTF-16LE, UTF-16BE or Windows-1252 according to your evidence. In UTF-8 mode, malformed input produces a clear decoding failure. Correct the source identification or obtain a clean source file instead of treating a failed conversion as usable output.
- Inspect the decoded preview. Check representative names, accents, punctuation, currency symbols and lines containing non-ASCII characters. This is the fastest way to catch an obviously incorrect endianness or code-page selection before downloading.
- Download the converted file. The output is UTF-8 without an added BOM, and its filename gains an -utf8 suffix. If you change the source encoding or selected file afterward, the previous visible result and download are invalidated, so generate the file again.
- Test the output in the destination application. Open the downloaded file where it will actually be used and verify the important content. Keep the original until the complete workflow has been confirmed.
Understand strict decoding and byte changes
Decoding and encoding are separate operations. A decoder maps source bytes to characters; the UTF-8 encoder then maps those characters to UTF-8 bytes. The formal rules for UTF-8 byte patterns are defined in RFC 3629. For UTF-8 input, the converter uses fatal error handling: invalid continuation bytes, truncated sequences and forbidden encodings stop the conversion instead of producing replacement characters.
UTF-16 adds a byte-order decision. Little-endian stores the low byte of a code unit first, while big-endian stores the high byte first. If those orders are reversed, the decoded characters can become nonsense even though the file still contains recognizable pairs of bytes. A matching UTF-16 BOM is recognized and removed, but the BOM alone should not replace understanding of the source format.
Windows-1252 is a legacy code page, not a member of the UTF-8 family. The browser's standards-defined Windows-1252 behavior is defined in the WHATWG Encoding Standard. One concrete mapping illustrates why byte counts change: the Windows-1252 byte 80 decodes to the euro sign, Unicode U+20AC, and is then emitted as the three UTF-8 bytes E2 82 AC. The output represents decoded characters, not a byte-for-byte copy of the source.
The converter reports both source and output byte counts. Different totals are expected because the encodings assign different byte lengths to characters. A larger or smaller result does not by itself indicate data loss or corruption; interpret the count alongside the preview and the destination application's behavior.
Check BOM behavior and special characters
BOM handling has separate rules for the source and the result:
- A leading UTF-8 BOM is consumed by the standards-based decoder.
- A matching UTF-16 BOM is recognized and removed.
- The downloaded file is emitted by the UTF-8 encoder without adding a BOM.
These rules do not conflict: a source marker can be consumed while the exported result remains BOM-free. If a destination application specifically requires a UTF-8 BOM, verify that separate requirement rather than assuming the converter supplies one.
Supplementary characters such as emoji are also important in UTF-16 files. A valid high and low surrogate pair is combined into one Unicode scalar value before UTF-8 output. Unpaired or malformed surrogate sequences are rejected under fatal decoding, which prevents the converter from silently exporting replacement diamonds while reporting success.
Verify the result before replacing the original
Treat the preview as a representative inspection rather than a complete proof of equivalence. The preview may not display every control character or normalization difference, so review several kinds of content rather than one short line.
- Compare representative personal names, addresses and identifiers.
- Check quotation marks, dashes, punctuation and currency symbols.
- Review lines containing accents, non-Latin scripts or emoji.
- Compare the reported source and output byte counts without treating a difference as automatic data loss.
- Open the downloaded file in the destination application and confirm that its import or rendering behavior is correct.
The converter decodes and re-encodes text; it does not normalize Unicode, translate languages or intentionally alter line endings beyond what follows from decoding and UTF-8 encoding. Those boundaries make destination testing important. Once the converted file has been checked in the application that will use it, you can replace the working copy while retaining the original as a rollback source.
Match symptoms to the next safe action
| Symptom | Likely explanation | Safe next action |
|---|---|---|
| UTF-16 letters appear as nonsense. | The little-endian and big-endian modes may be reversed. | Confirm the byte order from the producer, select the opposite mode if needed, and reconvert. |
| UTF-8 mode reports an invalid sequence. | The file is malformed or was assigned the wrong source encoding. | Check authoritative metadata and obtain a clean original when necessary; do not bypass the validation error. |
| Wrong accents or punctuation appear. | The selected legacy code page is probably incorrect. | Reconfirm the source encoding rather than editing the converted text by hand. |
| Some sections are readable and others are garbled. | The source may contain mixed encodings. | Recover clean source data or split and identify the encodings separately because one decoder cannot repair a mixed file reliably. |
| The output byte count differs. | UTF-8 and the source encoding use different byte lengths. | Compare the preview and test the file in its destination; the count difference alone does not establish loss. |
Use a streaming workflow for oversized files
The browser-based converter is limited to files of 10 MB because it operates on an in-memory buffer, and it checks the size before reading. For database dumps or multi-gigabyte logs, use a trusted streaming conversion utility with explicit source and destination encodings instead of attempting to load the complete file into browser memory.
If a file's source encoding remains unknown, pause the conversion and obtain authoritative information from its producer or metadata. The converter cannot detect that fact for you, and selecting a legacy mode merely to see what appears in the preview risks producing plausible but incorrect text.
For a deeper look, see Base32 Decode on Mac: A Strict UTF-8 Browser Workflow.
For a deeper look, see Convert to UTF-8: Command Line vs Online.