URL Encode / Decode
Encode and decode URLs with percent encoding.
Encode text to Base64 or decode Base64 back to plain text.
Base64 is an encoding scheme that converts binary data or text into an ASCII string. It is widely used for email attachments, data URIs, and API data transfer.
Authorization: Basic <base64> header by hand, just enter the text in username:password form and encode it.Input:
Hello, Torinoa Tools!
Output (encoded):
SGVsbG8sIFRvcmlub2EgVG9vbHMh
Input:
こんにちは
Output (encoded):
44GT44KT44Gr44Gh44Gv
Internally, the text is first converted to a UTF-8 byte sequence and then Base64-encoded, so strings containing Japanese, emoji, or other non-ASCII characters round-trip correctly (encode, then decode back to the original).
The reverse direction works on the same screen.
Input:
SGVsbG8sIFRvcmlub2EgVG9vbHMh
Output (decoded):
Hello, Torinoa Tools!
Input:
not-valid-base64@@@
@ isn’t a valid Base64 character, so trying to decode this produces an error:
Error: Invalid Base64 string. Please check your input.
The same error shows up if characters were accidentally dropped while copying, or if extra symbols or line breaks got mixed in. Double-check the contents of the input field.
Yes, it is completely free to use.
No. All processing happens in your browser. Nothing is sent to a server.
Yes. It supports Unicode strings including Japanese. The input is encoded as UTF-8 internally.
Standard Base64 uses the 64 characters A-Z, a-z, 0-9, +, and /, plus "=" for padding at the end. If you need to use the result directly in a URL or filename, you'll need to convert it separately to URL-safe Base64 (replacing + with - and / with _).
This error appears when the input contains characters that aren't valid in Base64 (symbols other than the standard set), or when the string length isn't a multiple of 4 (broken padding). Check whether any characters were dropped when you copied the text.