Convert to UTF-8 encoding by decoding a local text file from its actual source encoding, then re-encoding the decoded characters as BOM-free UTF-8 bytes.
This is a byte-to-character-to-byte conversion, not a search-and-replace repair for text that is already mojibake. The correct source encoding matters because the same bytes can represent different characters under different legacy encodings.
Use the UTF-8 Converter with a UTF-8, UTF-16LE, UTF-16BE, or Windows-1252 text file of up to 10 MB. The browser reads the file and creates the converted download locally without uploading the source bytes.

Decode first, then encode
Encoding conversion has two distinct stages. Decoding interprets the source bytes as characters, while UTF-8 encoding represents those characters as a new sequence of bytes. The output therefore represents decoded characters rather than a byte-for-byte copy of the input.
That distinction explains why a successful conversion can produce a file with a different size. It also explains why visual clues alone are unsafe: a wrong source setting can yield readable-looking words while changing names, punctuation, currency symbols, or other non-ASCII content.
The implementation uses the browser's standards-based decoder described by the WHATWG Encoding Standard, while RFC 3629 defines the byte-sequence rules for UTF-8.
| Source mode | Reliable basis for selection | Conversion behavior | Useful preview check |
|---|---|---|---|
| UTF-8 | The producer or reliable metadata identifies UTF-8. | Validates the source with fatal handling. Invalid continuation bytes, truncated sequences, and forbidden patterns fail clearly rather than producing replacement characters. A leading UTF-8 BOM is consumed. | Accents, symbols, and emoji |
| UTF-16LE | The producer identifies UTF-16 with the low byte stored first. | Decodes little-endian units, combines valid surrogate pairs, and recognizes and removes a matching BOM. | Ordinary letters plus emoji |
| UTF-16BE | The producer identifies UTF-16 with the high byte stored first. | Decodes big-endian units, combines valid surrogate pairs, and recognizes and removes a matching BOM. | Ordinary letters plus emoji |
| Windows-1252 | The producer identifies the Windows-1252 code page. | Applies the browser's Windows-1252 mappings, including punctuation and symbols in bytes 80 through 9F, before UTF-8 re-encoding. | Euro sign and curly quotation marks |
| Every selected source | The source mode is recorded explicitly. | Creates a downloadable UTF-8 result without adding a BOM and reports source and output byte counts. | Representative names and non-ASCII lines |
Treat this table as a selection and validation guide, not as an automatic detector. The explicit choice is what makes the conversion auditable.
Choose the source from evidence, not appearance
Start with the application that created the file, its export or save settings, and reliable file metadata. The goal is to identify the encoding that actually produced the bytes, not merely the label that seems convenient at the destination.
- Confirm whether an exported text file is UTF-8, UTF-16LE, UTF-16BE, or Windows-1252.
- For UTF-16, establish the byte order: little-endian stores the low byte first, while big-endian stores the high byte first.
- If the source remains unknown, resolve that uncertainty before converting. Guessing can make the result appear plausible while silently changing important characters.
Reversed UTF-16 byte order is especially deceptive because letters may become nonsense even though the byte pairs remain readable. Supplementary characters such as emoji use UTF-16 surrogate pairs; a valid high and low surrogate are combined into one Unicode scalar value before UTF-8 output. Unpaired or malformed sequences are rejected under fatal decoding rather than exported as replacement diamonds.
Windows-1252 is a common Western legacy code page and is often mislabeled as ISO-8859-1. Its control-byte range contains meaningful punctuation and symbols, so the selected decoder matters for characters such as the euro sign and curly quotation marks.
Convert a file in a controlled workflow
- Identify and select the real source encoding. Use the producing application or reliable metadata to choose UTF-8, UTF-16LE, UTF-16BE, or Windows-1252. Do not select a mode merely because the preview looks less broken; the converter deliberately requires an explicit source choice.
- Choose the local text file. The file must be no larger than 10 MB. Its size is checked before reading so the browser does not load an unexpectedly large file into memory. Keep the original available as a comparison and recovery copy.
- Run the conversion. If the selected source contains invalid data, the converter reports a clear failure rather than silently replacing characters. Review any error before downloading instead of changing the source setting simply to force output.
- Inspect representative non-ASCII content in the preview. Look for personal names, punctuation, currency symbols, emoji, and complete non-ASCII lines. Compare those characters with text you know came from the source whenever possible.
- Download the UTF-8 result. The output is emitted without a BOM, the downloaded filename adds -utf8, and the file is exposed with a plain-text UTF-8 media type. A recognized source BOM is consumed rather than copied into the result.
- Test the download in the destination application. Open or import the converted file using the exact application and workflow that need it. Do not replace the original until the relevant content has been checked and the destination has behaved as expected.
Use the preview as a focused validation gate
The preview shows the decoded characters, so it can expose an obviously incorrect UTF-16 byte order or legacy code page before download. Check more than the first few visible characters: sample names, punctuation, currency symbols, emoji, and lines containing non-ASCII text throughout the file.
The preview is not a complete representation of every possible file concern. It may not display every control character or reveal a Unicode normalization difference. It also cannot establish that a file containing multiple source encodings was internally consistent.
If you change the selected file or source encoding, the visible result is canceled and the previous download URL becomes invalid. Generate a fresh conversion and review it again rather than relying on an outdated download.
Test the UTF-8 file in the destination application
Download the converted file and test the actual artifact in the destination application. A preview can look correct while the downloaded file still fails an import rule, a parser check, or a workflow that treats a BOM differently from the tool.
The converter always produces UTF-8 without an added BOM. If the destination has a separate BOM requirement, check that requirement against its documentation rather than assuming the output should contain one. The file-based guide to converting text to UTF-8 without a BOM provides additional context on this output choice.
If characters are wrong after download, revisit the source evidence and selected byte order first. Then reconvert and repeat the preview checks. Keep the original file until the complete destination workflow is verified.
Interpret size changes by characters, not bytes
Different encodings use different byte lengths for the same characters, so a correct conversion often changes the file size. The converter reports both source and output byte counts, making expansion or contraction visible.
For example, the Windows-1252 euro-sign byte 0x80 becomes the three UTF-8 bytes E2 82 AC. The output is larger because the single source byte now carries a multi-byte UTF-8 representation, not because an extra character was inserted.
A difference in byte counts is therefore expected and does not by itself indicate data loss. Judge the conversion by decoded content and destination behavior, not by requiring the input and output files to have equal lengths.
Know the boundaries before converting larger or mixed files
- No automatic detection: The converter requires you to identify the source encoding because automatic guesses are probabilistic and may produce plausible but incorrect text.
- No mixed-encoding repair: If different sections of one file were produced with different encodings, a single decoder cannot repair the file reliably.
- A 10 MB file limit: The conversion operates on an in-memory browser buffer. For database dumps or multi-gigabyte logs, use a trusted streaming conversion utility with explicit source and destination encodings.
- No broad text transformations: The tool does not heuristically repair mojibake, normalize Unicode, translate languages, or modify line endings beyond what follows from decoding and UTF-8 encoding.
Control characters and normalization differences also need appropriate downstream checks because they may not be fully visible in the preview. The safest workflow therefore combines explicit source identification, focused character review, download, and testing in the destination application.
Once that sequence succeeds, the downloaded UTF-8 file is ready to use while the original remains available for comparison or rollback. This process creates a new UTF-8 artifact without replacing or silently modifying the source file.
For a deeper look, see Binary to Text Translator Google Search: UTF-8 Steps.
For a deeper look, see Convert to UTF-8 Example: A Windows-1252 File.