Text Encoding Converter
Convert UTF-8 text and its Base64, binary, hexadecimal, and decimal byte representations.
Files
Drop any file here to see its bytes in every format.
Or drop a file here, up to 8 KB. It isn't uploaded.
How to use this tool
Paste your input text
Type or paste a string into any of the input fields (Text, Base64, Hex, Binary, or Decimal). The converter detects which field you edited and treats it as the source, then updates every other representation live.
Pick the target encoding
Read the converted value in the field for the encoding you need. Base64 uses the standard RFC 4648 alphabet, hex uses 2 characters per byte, binary groups bits by byte, and decimal lists byte values separated by spaces.
Round-trip back to verify
Paste the converted output back into its own field to confirm the round trip. If the original text reappears, the encoding is lossless. If decoding fails silently, the input was not valid for that encoding (wrong characters, bad padding, or double-encoded).
Copy the result
Copy the converted string into your code, terminal, or debugger. Nothing is sent over the network, logged, or stored, so it is safe to use with tokens, fragments of secrets during local debugging, or CTF payloads.
About this tool
The Text Encoding Converter converts a string between Base64, binary, hexadecimal, decimal, and UTF-8, all locally in your browser. Paste text into one field and every other representation updates live, which helps when decoding a JWT, debugging a malformed API response, inspecting a suspicious string, or solving a CTF puzzle.
Use it when a backend returns Base64-encoded binary data and you need to see what's inside, when you're copying and pasting hex dumps between tools, or when you need to round-trip UTF-8 text through an encoding to prove nothing is corrupted. Because conversion happens entirely client-side, it's safe for tokens, fragments of secrets during local debugging, or anything else you wouldn't paste into a random online encoder.
Supported encodings
Base64 (RFC 4648 with standard alphabet), binary (grouped by byte), hexadecimal (2 chars per byte), decimal (byte values separated by spaces), and raw UTF-8 text. All conversions are round-trip safe for any valid Unicode input, including emoji and combining characters.
When to use it
Use it to decode Base64 strings from JSON payloads, inspect hex data from packet captures, check a URL-safe token, or show how the same bytes look across encodings. Pair it with the JSON Formatter when the decoded output is itself JSON, and the Unix Timestamp tool when the decoded payload contains epoch times.
Popular encoding guides
Guides to common encodings, with conversion examples and pitfalls.
Frequently asked questions
How do I convert text to Base64?
What's the difference between Base64 and hex encoding?
Why does my UTF-8 text break when converted to binary?
Is it safe to paste sensitive data into the converter?
What is URL-safe Base64?
Can I decode Base64 back to the original text?
Related tools
JSON Formatter
Validate, format, and minify JSON. Browse it as a tree, run JSONPath queries, compare two documents, or validate against a JSON Schema.
Use toolUnix Timestamp
Convert between Unix timestamps and human-readable dates.
Use toolPassword Generator
Generate secure, random passwords locally in your browser.
Use toolColor Picker
Pick colors and convert between HEX, RGB, HSL, CMYK, and HSV formats.
Use toolUse this tool on your own site
Drop the Text Encoding Converter into your blog, docs, or CMS with one iframe snippet. Free, no signup. See all embeddable tools