tools

Base64 Encoder / Decoder

Encode or decode Base64 for UTF-8 text or raw hex bytes, standard or url-safe.

[loading tool…]

How it works

Base64 maps every 3 bytes (24 bits) to 4 characters from a 64-character alphabet, so encoded data is about 33% larger. When the input length isn’t a multiple of 3, = padding fills the last group.

  • Text is encoded as UTF-8 first, so é (bytes c3 a9) becomes w6k=.
  • Hex bytes mode encodes raw bytes, which is handy for firmware blobs, keys and register dumps.
  • url-safe (base64url, RFC 4648 §5) swaps +/ for -_ and drops padding, as used in JWTs and URLs.

Decoding accepts both alphabets, with or without padding and whitespace. If the decoded bytes aren’t valid UTF-8, the tool shows them as hex instead of garbled text.

Privacy

Everything runs in your browser; nothing is uploaded. The input is remembered in this browser only, and only short inputs go into the shareable URL.

References

esc
All tools
ADC / DAC Resolution Calculator[embedded]
Base64 Encoder / Decoder[dev]
Battery Runtime Calculator[hardware]
Chmod Calculator[dev]
CRC Calculator[embedded]
Cron Expression Builder[dev]
CSV ⇄ JSON Converter[dev]
Duty-Cycle Battery Life[embedded]
Generator Wattage Calculator[hardware]
Hash Generator[dev]
HTML Entity Encoder[dev]
JSON Formatter & Validator[dev]
JSONPath Tester[dev]
JWT Decoder[dev]
LED Resistor Calculator[embedded]
LLM Memory / VRAM Estimator[ai]
Lorem Ipsum Generator[text]
Markdown Preview[text]
Markdown Table Generator[text]
Number & Float Inspector[embedded]
Number to Words[text]
Ohm's Law Calculator[embedded]
Password Generator[dev]
Quantization Size Calculator[ai]
RC / LC Filter Calculator[embedded]
Regex Tester[dev]
Register / Bitfield Viewer[embedded]
Resistor Color Code[embedded]
Roman Numeral Converter[text]
Solar Battery Bank Sizing[hardware]
Solar Panel Output[hardware]
SQL Formatter[dev]
Subnet / CIDR Calculator[dev]
Tensor Shape Calculator[ai]
Timer / PWM Calculator[embedded]
UART Baud Rate Error[embedded]
Unix Timestamp Converter[dev]
UPS Runtime Calculator[hardware]
URL Encoder & Parser[dev]
UUID Generator & Inspector[dev]
Voltage Divider Calculator[embedded]
Voltage Drop Calculator[hardware]
Wire Size Calculator[hardware]
XML Formatter[dev]
YAML Validator & Converter[dev]
Commands
Toggle theme (auto → light → dark)
Copy link to this page
Go to all tools
Lire en français
↑↓ move↵ open⌘↵ new tab