Encode
- Input
- Hello, World!
- Expected output
- SGVsbG8sIFdvcmxkIQ==
The web standard.
text to base64 encoder
Base64 is the most widely used encoding for embedding binary data inside text, in JSON, emails, JWT tokens and inline CSS images. This encoder converts text to Base64 and Base64 back to text, handling UTF-8 correctly.
The web standard.
Also accepts the URL-safe variant.
Select the Binary format, keep the direction on Text → Code and type your text. Each character becomes an 8-bit group (for example, 'A' becomes 01000001), separated by spaces. For the reverse, paste the binary and switch the direction to Code → Text, it works with space-separated groups or with one continuous run of bits.
No. Base64 is a reversible encoding with no key, anyone can decode the text back to the original. To actually protect data, use an encryption algorithm, like AES.
The "=" is padding: since Base64 groups data into 3-byte blocks, when the original text isn't a multiple of 3, the end is padded with "=" to complete the last 4-character block.
It's a version that swaps "+" for "-" and "/" for "_" (and usually omits the "=" padding), because those two characters have special meaning in URLs. This decoder accepts both variants automatically.
All translation happens in your browser. No text is ever sent to a server, safe for passwords, tokens and sensitive data.