Task path / input to outcome
How to encode and decode Base64
- 01
Pick Encode or Decode
Use the mode tabs to choose a direction. The result pane updates live as you type, and the status dot reports Ready, Valid, or Error for the current input, so malformed values surface before you copy anything.
- 02
Enter the value
Type into the Text input pane to encode, or paste into the Base64 input pane to decode. Load sample drops in a tiny example so you can see the round trip first, and whitespace inside a pasted Base64 value is ignored when decoding.
- 03
Set the options
UTF-8 is on by default and is required for characters beyond the Latin-1 byte range; URL-safe swaps + and / for - and _ and strips the padding; Preserve line breaks, also on by default, keeps newlines instead of folding them into spaces. The options apply to both directions.
- 04
Check the live validation
Decoding validates as you go: characters outside the alphabet, an impossible length, and — with UTF-8 on — bytes that are not valid UTF-8 each produce a named error. Fix the flagged value and the result recovers immediately.
- 05
Copy, swap, or download
Use Copy result for the clipboard, Swap to move the output into the input and flip direction for a round trip, or Download .txt to save toolars-base64.txt or toolars-decoded.txt.