Base64 encoder and decoder
Encode text to Base64 or decode Base64 back to text, in the standard or the URL-safe alphabet. UTF-8 aware, and it runs in your browser.
The result appears here.Everything you type here stays in your browser. Nothing is sent to HardenKit or to anyone else.
How to use the base64 encoder and decoder
- Choose the direction: text to Base64, or Base64 to text.
- When encoding, choose the standard or the URL-safe alphabet.
- Type or paste the input. The result updates as you type.
- Copy the result with the button above it.
About this tool
Base64 writes any bytes using 64 printable characters, so binary data can travel through places that only carry text: an HTTP header, a JSON field, an environment variable, a Kubernetes Secret. It makes data about a third longer and hides nothing.
That last point is the one that matters for security. Base64 is an encoding, not encryption: anyone can reverse it. A password in a Basic auth header or a value in a Kubernetes Secret manifest is only encoded, so treat the encoded form as the secret itself.
The URL-safe alphabet replaces + and / with - and _ and usually drops the = padding, which is what JSON Web Tokens use. This tool decodes both alphabets and tells you when the result is not text.
Sources
Questions
No. Base64 is a reversible encoding with no key. Anyone who sees the encoded text can decode it, so it gives no confidentiality at all.
Base64URL uses - and _ in place of + and /, and normally leaves off the = padding, so the result is safe inside a URL or a file name. JWTs use Base64URL.
The Base64 was valid but the bytes it holds are not UTF-8 text. That is normal for images, keys, compressed data and other binary content.
No. The values in a Secret manifest are Base64-encoded only. Anyone who can read the manifest can read the secret, which is why manifests with Secrets do not belong in a repository.