Convert ANSI to ASCII
Strip ANSI color and escape codes to leave plain ASCII text. Runs entirely in your browser, so your data never leaves your device.
Runs on your device, nothing uploaded
0 chars · 0 lines
Output
Strip ANSI color and escape codes to leave plain ASCII text.
Type or paste above to see the result here.
What you paste never leaves this tab
Convert ANSI to ASCII 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 ASCII
- 1. Paste the colored terminal output. Drop text that contains ANSI escape sequences into the input pane. Output captured from a CI job, a script log or a copied terminal session usually carries these invisible color codes.
- 2. Let the stripper find the sequences. The tool removes color and cursor codes such as ESC[31m and ESC[0m, window title and hyperlink sequences, device control strings and short two-byte escapes, while leaving the visible characters intact. A line above the result says how many escape codes it removed.
- 3. Catch codes written out as text. Logs pasted from a chat or a source file often spell the escape out as ^[[31m, \e[31m, \033[31m or \x1b[31m. Also remove written escape codes is on by default and cleans those too; turn it off to keep them.
- 4. Copy the plain result. Copy the stripped text into a ticket, a grep pipeline or a plain-text log store. If the input had no escape codes, the result says nothing changed.
When to use Convert ANSI to ASCII
Convert ANSI to ASCII strips the escape sequences that terminals use for color and formatting, leaving only readable text. Logs saved from colorized tools are full of sequences like ESC[32m that turn into gibberish everywhere except a terminal. One pass through this tool makes such output safe for any text destination.
- Cleaning CI logs for bug reports. A failing GitHub Actions or Jenkins job produces color-coded output that pastes as [31mERROR[0m garbage. Strip the codes before attaching the log to an issue so reviewers read the actual message.
- Preparing logs for grep and diff. Escape sequences sit between characters and quietly break exact-match searches. Stripping them first means grep, diff and awk operate on the words you see rather than hidden byte salad.
- Archiving terminal sessions as plain text. Output captured with the script command or tee from a colorized CLI is unreadable in a normal editor. Cleaning it produces an archive-quality transcript that opens correctly anywhere.
- Feeding CLI output into another program. A parser expecting plain columns from ls or a test runner chokes on embedded color codes. Sanitize the sample here to confirm the codes were the problem before patching your pipeline.
Examples
Strip colors
Input
[31mred[0m
Output
red
Written escape codes
Input
^[[31mred^[[0m
Output
red
Window title sequence
Input
]0;titledone
Output
done
About the Convert ANSI to ASCII tool
Convert ANSI to ASCII is a free online tool that works entirely inside your web browser. Strip ANSI color and escape codes to leave plain ASCII text. Because the processing happens on your own device, nothing you enter is uploaded, logged or stored anywhere.
This page is one of 81 ASCII utilities on EditSafely. Each one does a single job well, and all of them follow the same rule: your input stays on your machine.
You can shape the output with the Also remove written escape codes setting, and the result refreshes the moment you change it. 3 worked examples further down the page show exactly what the tool produces for real inputs.
Because nothing leaves your device, the tool is suitable for sensitive content such as internal documents, credentials or customer data. It also responds instantly, since every step is handled on your own machine rather than by a remote API.
Frequently asked questions
Does Convert ANSI to ASCII 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 ASCII Tools →Debug ASCII Data
Inspect each character's code in decimal, hex and binary.
Validate ASCII
Check whether text contains only 7-bit ASCII characters.
Normalize Line Breaks in Text
Collapse runs of blank lines to a consistent gap.
Convert ASCII to Uppercase
Turn every letter in the ASCII text into a capital letter.
Convert ASCII to Lowercase
Turn every letter in the ASCII text into a small letter.
Reverse ASCII Characters
Reverse the order of characters in the input.
Rotate ASCII Characters
Rotate the characters of a string left or right by N positions.