Reading the contents of a JWT token, inspecting an encoded HTTP header or decoding an image embedded in CSS: Base64 decoding is a daily operation for developers. An online tool makes this operation instantaneous and code-free.
Base64 decoding is the reverse of encoding. The algorithm takes an ASCII string containing only Base64 alphabet characters (A-Z, a-z, 0-9, +, /) and = padding characters, then reconstructs the original bytes. If the string contains invalid characters or the padding is incorrect, decoding fails. Note that Base64url (used in JWTs) replaces + with - and / with _ for URL compatibility.
π Formula
π Reference table
| Base64 encoded | Decoded text |
|---|---|
| SGVsbG8= | Hello |
| SGVsbG8gV29ybGQ= | Hello World |
| dXNlcjpwYXNzd29yZA== | user:password |
| eyJhbGciOiJIUzI1NiJ9 | {"alg":"HS256"} |
| VG9vbFNtYXJ0bHk= | ToolSmartly |