Encoders & Decoders
Base64 Encoder / Decoder
Encode and decode UTF-8 text or a small file as standard or URL-safe Base64, entirely in the browser.
Processed locally. Nothing from the editor is stored.
How to use Base64
Text is encoded as UTF-8 bytes and then as Base64. URL-safe mode uses - and _ and omits padding. Decoding accepts standard or URL-safe input. If the bytes are not UTF-8, the tool still lets you download them.
- Choose Encode or Decode, and Standard or URL-safe.
- Paste text or upload a file up to 2 MB.
- Copy the text result or download the decoded bytes when the output is not text.
Examples
Encode a string with an accent
DevToolPilot café encodes the é as UTF-8 bytes C3 A9 before Base64. Decoding returns the same string.
Prepare a token fragment
URL-safe output can be placed in a query string without extra encoding of + and /.
Questions
Is Base64 encryption?
No. Base64 is an encoding. Anyone can decode it. Do not use it to hide a secret.
Why did decoding not show text?
The bytes were not valid UTF-8. Download the binary result instead of forcing a broken string.
Related tools
URL EncoderEncode and decode URI components, parse a query string, and edit parameters with Unicode left intact.JWT DecoderDecode a JWT header and payload locally, inspect standard claims, and see when exp, nbf, and iat fall. Signatures are not verified.Hash GeneratorCalculate SHA-256 and SHA-512 digests for text or a file with the Web Crypto API. This computes a hash, not an encryption.