Input
Output
UTF-8 text is supported.
Base64 encoding
Base64 represents binary data using printable ASCII characters. It is an encoding format, not encryption, and should not be used to protect secrets.
More useful tools
General information only. Results are estimates and may vary by convention, provider, location or implementation.
More information
How to use it
Enter text to encode it as Base64 or paste a Base64 string to decode it. Base64 is a text representation of binary data, commonly used in email attachments, data URLs and API payloads.
How it works
Base64 groups binary input into six-bit chunks and maps each chunk to one of 64 characters. Padding with = may be used to complete the final group. Three bytes commonly become four Base64 characters, so encoded data is roughly one third larger.
Worked example
The UTF-8 text “Hi” encodes to SGk=. Decoding SGk= returns “Hi”. The exact encoded output depends on the input bytes and text encoding, especially for non-ASCII characters.
Not encryption
Base64 provides no secrecy or integrity protection. Anyone can decode a Base64 value without a key. Never treat Base64 as a secure way to store passwords, tokens or confidential information.
Practical details
Base64URL uses URL-safe characters and sometimes omits padding. Standard Base64 and Base64URL are related but not interchangeable in every application. Invalid padding or malformed characters can cause decoding errors.