Convert ANSI to UTF8
Convert ANSI (Windows-1252) encoding to UTF8 encoding. Runs entirely in your browser, so your data never leaves your device.
Runs on your device, nothing uploaded
0 chars · 0 lines
Output
Convert ANSI (Windows-1252) encoding to UTF8 encoding.
Type or paste above to see the result here.
What you paste never leaves this tab
Convert ANSI to UTF8 is JavaScript that your browser has already downloaded, and it does the whole job on your own machine. On a normal site, the text you paste is sent to a server that can log it, cache it or keep it. Here it is read and transformed inside this tab and nowhere else.
- No upload
- No length limit
- Works offline once loaded
- Nothing stored or logged
How to use Convert ANSI to UTF8
- 1. Paste the ANSI byte values. Paste garbled text such as café (UTF-8 that was read as Windows-1252), or the raw Windows-1252 (ANSI) byte values as hex, such as 80 for the euro sign. The tool detects which one you pasted.
- 2. Let the decoder map each byte. Garbled text is mapped back to its bytes and decoded as UTF-8, up to two layers deep. Hex bytes are looked up in the Windows-1252 table, which reassigns the 0x80 to 0x9F range to curly quotes, dashes and other symbols. Use Input is to force one mode.
- 3. Copy the resulting UTF8 text. The decoded characters appear as normal UTF8 text on the right. Copy them into your editor or database once the mangled bytes have been turned back into readable symbols.
When to use Convert ANSI to UTF8
Convert ANSI to UTF8 exists for files that a Windows application saved in the Windows-1252 codepage instead of UTF8. Opening such a file with the wrong encoding turns curly quotes, em dashes and the euro sign into garbled question marks or boxes. This tool decodes the exact bytes so you can see and copy the intended characters.
- Recovering text from an old CSV export. A CSV exported years ago from an Access database or Excel on Windows stores smart quotes and euro signs as Windows-1252 bytes. Pasting those byte values here recovers the original punctuation before you re-import the file.
- Fixing mojibake from an email attachment. An email client shows a Word document's curly apostrophes as strange symbols because it assumed UTF8 instead of ANSI. Decoding the hex bytes reveals the actual characters the author typed.
- Migrating a legacy Windows application's data. A desktop app from the 2000s stored user names in the system codepage. Converting each stored byte sequence to UTF8 here lets you build a clean migration script for a modern database.
Examples
Decode
Input
80
Output
€
Fix garbled text
Input
café
Output
café
About the Convert ANSI to UTF8 tool
Convert ANSI to UTF8 runs as plain JavaScript in your browser tab, with no server behind it. Convert ANSI (Windows-1252) encoding to UTF8 encoding. Whatever you put in stays on your device from start to finish.
The tool is part of EditSafely's UTF-8 Tools section, 69 single-purpose utilities built around the same idea: open the page, get the result, keep your data to yourself.
You can shape the output with 2 settings, including Input is and Garbled layers, and the result refreshes the moment you change one. 2 worked examples further down the page show exactly what the tool produces for real inputs.
That local-first design has practical benefits beyond privacy. The tool keeps working on a flaky connection once the page has loaded, results are instant because nothing round-trips to a server, and it is safe to use with confidential material.
Frequently asked questions
Does Convert ANSI to UTF8 cost anything?
Yes, it is completely free. All 2,943 tools on EditSafely work without an account, a subscription or usage limits.
Is it safe to paste sensitive or confidential data?
No data leaves your device. The whole tool is JavaScript that runs inside your browser tab, so there is no upload, no server-side processing and no log of what you did. If you disconnect from the internet after the page loads, it keeps working.
How much text can I process at once?
There is no fixed limit; your device's memory is the ceiling. Up to 10 MB the result updates as you type, after a short pause that grows with the size. Above 10 MB a Run button appears so typing stays smooth, and files open up to 50 MB. A very long result shows its first 2,000 lines on screen, while Copy and Download always include all of it.
Do I need to sign up or install anything?
Nothing to install and no account needed. Open the page in any up-to-date browser, including on a phone or tablet, and the tool is ready.
How do I use the result?
The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.
Related tools
All UTF-8 Tools →Convert UTF8 to ANSI
Convert UTF8 text to ANSI bytes in a Windows code page.
Convert Latin1 to UTF8
Convert ISO-8859-1 encoding to UTF8 encoding.
Convert UTF8 to Latin1
Convert UTF8 encoding to ISO-8859-1 encoding.
Convert UTF8 to ASCII
Turn UTF8 text into plain ASCII (café to cafe), or decode UTF8 hex bytes.