Plain text input
Enter UTF-8 text to encode.
Encode text to Base64, decode Base64 strings, convert between Base64 and Base64URL, and validate encoded data.
Enter UTF-8 text to encode.
Read-only result
Output appears here as you type.
Base64 represents binary data using a limited set of text characters. It is commonly used in data URLs, email attachments, API payloads, certificates, and tokens where raw bytes cannot be transported directly.
Standard Base64 uses + and /. Base64URL replaces them with - and _ so values are safer in URLs and filenames. Base64URL padding is often omitted.
Base64 is used for small transport-safe values, data URLs, API payloads, HTTP Basic authentication credentials, JWT header and payload segments, configuration values, email attachments, and debugging encoded strings.
Base64 output is arranged in groups of four characters. One or two trailing = characters may be added when the final group is incomplete. For example, SGVsbG8= and the unpadded SGVsbG8 both represent Hello. Standard Base64 commonly keeps padding, while Base64URL values such as JWT parts often omit it.
No. Base64 is reversible encoding and provides no secrecy, integrity, or authentication. Anyone with the encoded value can decode it, so do not use Base64 to protect passwords, API keys, or private data.
This tool converts text using UTF-8, so accented characters, non-Latin writing systems, and emoji can be encoded and decoded correctly.
Yes. It is free to use and requires no account.
No. Encoding and decoding happen entirely in your browser.
Yes. Input text is converted using UTF-8 before Base64 encoding.
The = characters pad the final group to a complete Base64 block. Some formats, especially Base64URL, omit this padding.
It may contain characters from the other Base64 variant, have malformed padding, or decode to bytes that are not valid UTF-8 text.
No. Base64 only changes representation and should not be treated as encryption.
Yes. JWT header and payload parts use Base64URL encoding. For complete claim and timing inspection, use the JWT Decoder.