Base64 Encoder / Decoder
Encode text to Base64 or decode Base64 back to text instantly. Full UTF-8 support, plus file-to-Base64 conversion for data URIs.
How to use Base64 Encoder / Decoder.
- 1
Paste text into the input area (or choose a file to convert to a data URI)
- 2
Click 'Encode' to convert text to Base64, or 'Decode' to convert Base64 back to text
- 3
Use 'Swap' to move the output back into the input for round-trip testing
- 4
Click 'Copy' to copy the result to your clipboard
Why use this tool.
Embed images or fonts in CSS and HTML as data URIs without a server round-trip
Decode Base64 payloads from APIs, JWTs, and email attachments safely offline
UTF-8 safe encoding — emoji and international characters survive the round trip
100% client-side processing — sensitive tokens and credentials never leave your browser
No signup or installation — works instantly in any modern browser
About Base64 Encoder / Decoder.
True Tool Deck's Base64 Encoder / Decoder is a free online tool for converting text and files to Base64 and decoding Base64 strings back to readable text. Developers use Base64 constantly — embedding images as data URIs, inspecting JWT tokens, preparing email attachments, and passing binary data through JSON APIs. This tool handles all of it with full UTF-8 support, so emoji and international characters round-trip perfectly, and a built-in file converter that produces ready-to-paste data URIs. Everything runs entirely in your browser: the tokens, credentials, and files you work with are never uploaded to a server, making it safe to decode sensitive payloads. No signup, no limits, no watermarks.
Frequently asked questions.
What is Base64 encoding?
Base64 is a method of representing binary data using only 64 printable ASCII characters (A–Z, a–z, 0–9, + and /). It's used to safely transmit binary content — images, files, credentials — through text-only channels like JSON, HTML, CSS, and email.
Is Base64 encryption?
No. Base64 is an encoding, not encryption — anyone can decode it instantly. Never use Base64 to protect secrets; it only makes binary data text-safe, it does not hide it.
Does this tool support emoji and non-English text?
Yes. The tool encodes text as UTF-8 bytes before Base64 conversion, so emoji, accented characters, Chinese, Arabic, and every other Unicode script encode and decode correctly.
Why does Base64 make data larger?
Base64 represents every 3 bytes of data with 4 characters, so encoded output is about 33% larger than the input. That overhead is the price of making binary data text-safe.
Can I convert an image to Base64?
Yes. Use the file picker to load any file — the tool produces a complete data URI (like data:image/png;base64,...) that you can paste directly into CSS or an HTML img tag.
Is my data uploaded anywhere?
No. Encoding and decoding happen entirely in your browser using JavaScript. Nothing you paste or upload is ever transmitted to a server.