Convert ASCII to Any Base
Convert ASCII characters to numbers in any base from 2 to 36. Runs entirely in your browser, so your data never leaves your device.
Runs on your device, nothing uploaded
0 chars · 0 lines
Output
Convert ASCII characters to numbers in any base from 2 to 36.
Type or paste above to see the result here.
What you paste never leaves this tab
Convert ASCII to Any Base 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 ASCII to Any Base
- 1. Enter the text to encode. Type or paste ASCII text into the input pane. Each character is taken as its numeric code, ready to be written out in whatever radix you select next.
- 2. Pick the target base. Tap a base chip or type any base between 2 and 36. Pad to equal width (on) gives every byte the same number of digits, so base 3 writes Hi as 002200 010220; Uppercase digits writes 2X instead of 2x.
- 3. Set the separator between values. The Separator option controls what sits between encoded numbers. A space is easiest to read, a comma suits pasting into arrays, and a newline gives you one value per line for spreadsheets.
- 4. Copy the encoded numbers. Copy the finished sequence from the output pane. Anyone can reverse it with the matching any-base decoder as long as they know, or can guess, the base you chose.
When to use Convert ASCII to Any Base
Convert ASCII to Any Base writes each character's code in a radix you choose, from binary up to base 36. It replaces a shelf of single-base encoders with one adjustable dial, and the separator control means the output drops straight into whatever format your destination expects.
- Creating puzzle and CTF material. Encoding a message in base 23 makes a satisfying challenge because standard hex and binary decoders fail on it. Hand out the digits and let solvers discover the radix themselves.
- Matching a protocol's numeric format. An embedded protocol logs character data in base 32 with comma separators. Reproduce the exact wire format here to build comparison fixtures without writing a custom encoder first.
- Teaching positional number systems. Show a class the same word encoded in base 2, 8, 10 and 16 side by side. Watching the digit lengths shrink as the base grows makes radix tradeoffs concrete in one slide.
- Generating array literals for code. You need character codes as a base-8 list with comma separators for a C escape table. Set the base and separator once and paste the output directly between the braces.
Examples
Base 16
Input
Hi
Output
48 69
Base 3, padded
Input
Hi
Output
002200 010220
About the Convert ASCII to Any Base tool
Convert ASCII to Any Base does its work locally, right in the browser. Convert ASCII characters to numbers in any base from 2 to 36. There is no upload step, no queue and no account, and your data never travels over the network.
It belongs to the ASCII Tools collection on EditSafely, a set of 81 small, focused ASCII utilities that share the same instant, private workspace.
You can shape the output with 4 settings, including Base, Separator, Pad to equal width and Uppercase digits, 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.
Running locally also makes the tool fast and dependable: results appear as soon as your input does, there is no server outage that can take it down mid-task, and confidential data can be processed without a second thought.
Frequently asked questions
Is Convert ASCII to Any Base free to use?
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?
Everything happens locally. Your browser downloads the tool's code once, then does all the processing itself; nothing you enter is transmitted, stored or logged. You can even go offline after the page loads and it will still work.
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?
No. The tool works in any modern browser on desktop, tablet or phone. There is no account to create, no extension to add and no software to install.
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.