Base64 Encoder
Turn plain text or a file into a Base64 string. It is useful for embedding data in HTML, CSS, JSON, emails and API requests.
Encode text to Base64 or decode it back instantly. Fast, free and no signup.
Select Encode to create Base64 or Decode to read it.
Type or paste text. The result updates instantly.
Copy the output or save it as a text file.
Need a free Base64 encoder and decoder? Convert text to Base64 or decode a Base64 string back to readable text in one click. The tool works in your browser, supports UTF-8 characters, offers a URL-safe option, and lets you encode small files too. No installation and no account needed.
Turn plain text or a file into a Base64 string. It is useful for embedding data in HTML, CSS, JSON, emails and API requests.
Paste a Base64 string and read the original text instantly. Standard and URL-safe Base64 are both detected, and invalid input shows a clear error.
Switch on URL-safe mode to get a string that can be used in URLs, tokens and filenames without extra escaping.
Base64 is a way of representing binary data using 64 printable characters: letters, numbers, plus and slash. It is commonly used when data has to travel through systems that handle text only, such as email, JSON or HTML attributes.
Base64 is an encoding, not encryption. Anyone can decode it, so never use it to protect passwords or sensitive information.
Switch the mode to Decode and paste your Base64 string. The decoded text appears immediately. If the string has missing characters or invalid symbols, the tool will tell you that the input is not valid Base64.
Quick answers about encoding, decoding and using Base64 safely.
Select Encode, paste your text in the input box and the Base64 result appears right away. Copy it or download it as a file.
Switch to Decode mode and paste your Base64 string. The original text is shown in the result box. Line breaks and spaces in the string are ignored.
No. Base64 only changes how data is represented. Anyone can decode it, so it does not protect your data.
URL-safe Base64 replaces plus with a hyphen and slash with an underscore, and removes the equals padding. This makes the string safe for URLs and filenames.
Yes. Text is processed as UTF-8, so Urdu, Hindi, Arabic, emojis and other special characters encode and decode correctly.
The equals signs are padding that makes the string length a multiple of four. URL-safe mode removes them.
Yes. Use the Select file option in Settings to encode any file up to 5 MB. Larger files may slow down your browser.
No. The conversion runs entirely in your browser, so your data stays on your device.
Format, encode and hash data in seconds. Explore everything in one place.
All Tools