DEV Community

TidyContracts
TidyContracts

Posted on Originally published at base64kit.com

Base64 encoding, explained without the jargon

Base64 turns binary data into ASCII text so it can travel through systems that only expect text. It is not encryption, and it does not compress anything: it makes the payload about 33% larger.

A quick example: "Hello" becomes "SGVsbG8=". Decode it and you are back where you started. That round trip is the whole idea.

It shows up in data URLs, JSON attachments, basic auth headers and small configuration images. Do not use it as a security measure, and do not use it for large files when a normal upload works.

If you need to check a value quickly, a browser-based encoder keeps the data on your machine. EncodeKit is a free, local Base64 and URL encoder/decoder with no sign-up and no upload.

Top comments (0)