Encode UTF-8 text into Base64
Base64 Tools
Base64 Decode and Encode Tool
Decode Base64, encode UTF-8 text, and fix common Base64 decode errors such as invalid characters, missing padding, and Base64URL input.
- Runs in your browser
- No account required
- Copy-ready output
Decode Base64 strings back to readable UTF-8 text
Support Chinese, emoji, and other Unicode characters when encoding or decoding
Point malformed Base64 input to padding, invalid character, and Base64URL fixes
Notes
How this tool handles your input
This Base64 tool converts readable UTF-8 text into Base64 and decodes Base64 back to text. If a copied value fails because of invalid characters, missing padding, newlines, or Base64URL characters, open the fixer from this page and inspect the repaired value before using it.
How to use
- Type or paste text into the input area.
- Choose Encode to create Base64 or Decode to read a Base64 string.
- If decoding fails, open Fix Decode Error and inspect the copied value.
- Copy the result from the output area.
Good for
- Decode API tokens or headers you are inspecting
- Encode short test values for requests
- Check whether Base64 content is valid UTF-8 text
- Move failed decode input into the Base64 Error Fixer
Examples
Hello 1024base
SGVsbG8gMTAyNGJhc2U=
SGVsbG8sIDEwMjRiYXNl
Hello, 1024base
FAQ
Does this support Chinese text?
Yes. The tool uses UTF-8, so Chinese and other Unicode characters are handled correctly.
Is Base64 encryption?
No. Base64 is an encoding format, not encryption. Anyone can decode it.
Why does decoding sometimes fail?
The input may contain characters outside the Base64 alphabet, missing padding, URL-safe Base64 characters, copied line breaks, or bytes that are not valid UTF-8 text.
Can this decode URL-safe Base64?
The standard decoder handles standard Base64 text. For URL-safe variants, use the Base64 Error Fixer linked on this page to normalize dash, underscore, and padding first.
Is my data uploaded to a server?
No. The tool runs in your browser, so the text you paste stays on your device.