Byte Array to String Converter
Convert text into its UTF-8 byte values, or turn a comma/space-separated list of byte values back into text.
About this tool
Convert text into its UTF-8 byte values, or turn a comma/space-separated list of byte values back into text.
Example
Input: Hi
Output: 72, 105
Privacy
This tool runs entirely in your browser. Your data is processed locally and never uploaded to a server.
How to use this tool
- Paste a text string or a comma or space separated list of byte values into the input box.
- Choose whether you want text converted to bytes or bytes converted back to text.
- Read the instant result in the output area and copy it if needed.
- If the result looks wrong, check separators, encoding, and whether every byte value is between 0 and 255.
Step by step, what happens
- When you enter text, the tool reads the characters as UTF-8 and turns them into byte values.
- When you enter a byte list, the tool splits the numbers by commas or spaces and treats each item as one byte.
- For byte-to-text conversion, the tool rebuilds the original string from those UTF-8 bytes.
- If a byte list is invalid or incomplete, the output may be incorrect or fail because UTF-8 requires valid byte sequences.
Worked example
A common use is checking the UTF-8 bytes for a short greeting and then turning those bytes back into the same text.
Input: Hi
- The tool reads the letters H and i as text.
- It converts them to their UTF-8 byte values.
- If you switch to byte-to-text mode and enter those bytes, it decodes them back to the original string.
Output: 72, 105
Tips and common mistakes
- Use decimal byte values, not hex, unless your byte list has already been converted to decimals.
- Separate byte values with commas, spaces, or both, since the tool accepts either format.
- Remember that non-ASCII text can use multiple bytes in UTF-8, so one character may become several byte values.
- If a decoded result looks strange, make sure the bytes are valid UTF-8 and not from a different encoding.
Frequently asked questions
What encoding is used?
UTF-8, each character maps to one or more byte values 0-255.
What format are the bytes?
Decimal byte values separated by commas or spaces.
Can it handle emoji?
Yes, multi-byte characters produce several byte values.
More Developer Tools Tools
Explore related calculators in this category
Query String Builder
Build a URL-encoded query string from key=value lines. Encodes special characters safely.
Query String Parser
Parse a URL query string into key-value pairs. Decodes percent-encoding automatically.
.htaccess Generator
Generate common .htaccess rules, force HTTPS, www redirect, and caching, with checkboxes.
API Key Generator
Generate random, secure API keys and tokens with an optional prefix. Cryptographically secure.
You Might Also Like
Popular tools from other categories
Solar Array Layout Calculator
Calculate panels per string and total array layout.
1031 Exchange Calculator - Free Online
Free Calculate tax deferral in a 1031 exchange. Step-by-step solutions and formulas included. Fast, accurate, and free, with formula and example.
4% Rule Calculator
Find the retirement nest egg you need using the 4% safe-withdrawal rule.
70% Rule Calculator
Calculate max offer using the 70% rule for flips.
Can't Find the Right Calculator?
Try our AI Math Solver, type any problem in plain English and get instant step-by-step solutions.