Convert ASCII to Bytes
Show the decimal UTF-8 byte values of each character. Runs entirely in your browser, so your data never leaves your device.
Runs on your device, nothing uploaded
0 chars · 0 lines
Output
Show the decimal UTF-8 byte values of each character.
Type or paste above to see the result here.
What you paste never leaves this tab
Convert ASCII to Bytes 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 Bytes
- 1. Paste the text to inspect. Enter your text in the input pane. The tool encodes it as UTF-8 and lists the decimal value of every resulting byte, so plain ASCII gives one number per character.
- 2. Pick a format and base. Tap a Format chip: Plain lists the bytes with your chosen separator, while JSON/JS, Python, C and Java write a ready array literal such as [72, 105] or new byte[]{72, 105}. Switch Base to Hex for 0x48 style values; C always uses hex and Java shows signed bytes, so 195 becomes -61.
- 3. Interpret the numbers. Hi produces 72 105 because those are the UTF-8 byte values. Characters outside ASCII expand to multiple bytes, so an accented letter shows two numbers, which is often exactly the insight you needed.
- 4. Copy the byte list. Copy the sequence into source code, a hex editor session or a byte-level comparison. The bytes-to-ASCII companion tool reverses the process when you want text back.
When to use Convert ASCII to Bytes
Convert ASCII to Bytes reveals the decimal byte values behind a string after UTF-8 encoding. It bridges the gap between text you can read and the numbers programs actually store, which is invaluable when initializing byte arrays, checking encodings or explaining why a string's byte length exceeds its character count.
- Initializing byte arrays in code. Firmware and test code often need a message as a literal like {72, 105}. Convert the string with a comma separator and paste the numbers into your C or Rust source unchanged.
- Spotting multi-byte characters. A field validator says a 10-character name is 12 bytes long. Running the string through here shows which characters expand under UTF-8 and explains the length mismatch instantly.
- Comparing against a memory dump. A debugger shows decimal byte values at some address and you suspect they spell a known string. Encode your candidate text and match the numbers side by side.
- Preparing checksum calculations. Computing a checksum by hand requires the byte values first. List them here, sum or XOR them on paper, and verify the result your code produces for the same input.
Examples
Encode
Input
Hi
Output
72 105
JavaScript array
Input
Hi
Output
[72, 105]
Java signed bytes
Input
é
Output
new byte[]{-61, -87}About the Convert ASCII to Bytes tool
Convert ASCII to Bytes does its work locally, right in the browser. Show the decimal UTF-8 byte values of each character. 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 3 settings, including Format, Base and Separator, and the result refreshes the moment you change one. 3 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
Does Convert ASCII to Bytes 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.