How do I encode text to Base64?
Select the Encode tab, type or paste your text into the left panel, and the encoded result appears instantly on the right. Press Ctrl+Enter (Cmd+Enter on Mac) to force an immediate transform.
How do I decode a Base64 string?
Select the Decode tab and paste the Base64 string into the input. The tool decodes it as UTF-8 text. You can also choose Auto detect to let the tool decide whether your input needs encoding or decoding.
Does Base64 encoding work with Unicode, emoji, and non-Latin scripts?
Yes. All text is encoded from UTF-8 bytes, so emoji, Chinese, Arabic, Hebrew and accented characters all survive the round trip exactly. Character counts count full Unicode code points rather than code units.
What is URL-safe Base64?
Standard Base64 uses “+” and “/”, which have special meaning in URLs, and trailing “=” padding. URL-safe Base64 replaces “+” with “-” and “/” with “_”, and omits the padding. Toggle the URL-safe option to encode or decode with that alphabet.
How large can the input be?
The transformation engine is built for payloads of 10 MB and beyond. Encoding and decoding run in a single fast pass over the bytes, and the result appears after a short debounce so the page never blocks while you type.
Why is the output bigger than the input?
Every three bytes of input become four Base64 characters, so encoded output is always about 33% larger. The Expansion metric shows the exact percentage for your input — a larger number simply means more source bytes were converted.
Can I upload a file to encode or decode?
Yes. Click 'Upload file' on the input panel and choose a .txt, .json, or .csv file. Its contents are read as UTF-8 text and fed into the transformer, so a whole config file or log can be encoded in one step.
What happens when I click Swap?
Swap moves the current output into the input and flips the mode (Encode becomes Decode and vice versa). It is the fastest way to round-trip: encode a string, swap, and you have the original text back.
Is Base64 the same as encryption?
No. Base64 is merely an encoding — it uses a fixed, public alphabet and can be reversed by anyone. Encrypting requires a secret key and provides confidentiality. You can encrypt then Base64-encode the result for transport, but Base64 alone never hides data.
Is my data sent to a server?
No. Everything — encoding, decoding, metrics and file reads — happens entirely in your browser. Nothing you paste or upload is transmitted, logged, or stored.
Why does decoding report 'Invalid Base64 input'?
Base64 accepts only A–Z, a–z, 0–9, “+” and “/” (or “-” and “_” when URL-safe is enabled), with at most two “=” characters at the very end. The error message points at the exact character and position that breaks the rules.
What are the keyboard shortcuts?
Press Ctrl+Enter (Cmd+Enter on Mac) to transform immediately, and Ctrl+Shift+X to swap the output into the input while flipping the mode.