IT lexicon › Programming › Base64

Base64

Programming På svenska → Updated: 2026-05-26

Encoding for representing binary data as ASCII text. 6-bit chunks → 64-character alphabet (A–Z a–z 0–9 + /). File grows ~33%. RFC 4648.

Use: email attachments (MIME), data: URLs (data:image/png;base64,...), JSON payloads with binary data, JWT tokens (Base64URL variant without +/). CLI: base64 file.bin, base64 -d for decode. URL-safe variant replaces +/ with -_. Not security — base64 isn't encryption, just encoding. ImageMagick + ffmpeg have built-in base64 output for pipe-friendliness. Modern trend: binary endpoints (gRPC, MessagePack) instead of base64-in-JSON.

← Back to the lexicon