Base64 Encoder & Decoder – Encode or Decode Text
Encode and decode Base64 online for free with ToolGuru. Convert text to Base64 or decode a Base64 string in your browser, including Unicode characters.
Mode
🔒 Your data is processed in your browser and is not uploaded to our server.
Free Base64 encoder and decoder
Encode text to Base64 or decode a Base64 string without installing a CLI. This Base64 converter runs in your browser, so you can encode Base64 and decode Base64 instantly — no account and no upload.
Encode Base64 from text
Switch to Encode, paste a line such as “Hello ToolGuru”, and convert. The output is standard Base64 you can place in JSON, HTTP headers, or email. UTF-8 is used so emoji and non-English text encode correctly.
Decode Base64 to text
Switch to Decode and paste a Base64 value. Spaces and line breaks are stripped first. If the alphabet or padding is wrong, you will see “Invalid Base64 input.” instead of a crash.
Related developer tools
Percent-encode links with the URL Encoder / Decoder, inspect tokens with the JWT Decoder, or tidy API responses with the JSON Formatter.
How to Encode or Decode Base64
Step 1
Choose encode or decode
Use Encode to turn text into Base64. Use Decode to turn a Base64 string back into text.
Step 2
Paste your input
Enter plain text, Unicode, or a Base64 string. Spaces in Base64 are ignored when decoding.
Step 3
Convert and copy
Convert in your browser, then copy the result. Invalid Base64 shows a clear error instead of crashing.
Frequently Asked Questions
What is Base64 encoding?
Base64 turns binary or text into a set of letters, numbers, plus, and slash so it can travel safely in JSON, URLs, or email. Decoding reverses that process.
How do I encode text to Base64?
Choose Encode, paste your text, and convert. The output is a Base64 string you can copy into an API, config, or email.
How do I decode Base64?
Choose Decode, paste the Base64 value, and convert. If the input is not valid Base64 you will see “Invalid Base64 input.”
Does this encoder support Unicode?
Yes. Text is encoded as UTF-8, so Urdu, Arabic, emoji, and other Unicode characters round-trip correctly.
Is the Base64 converter free?
Yes. Encode and decode as often as you need. No account is required.
Is my text uploaded to a server?
No. Your data is processed in your browser and is not uploaded to our server.
Related tools
Developer Tools
JSON Formatter
Format, validate, beautify, and minify JSON in your browser.
Developer Tools
URL Encoder / Decoder
Encode or decode URL strings and query parameters.
Developer Tools
JWT Decoder
Decode a JSON Web Token and inspect its header and payload.
Developer Tools
UUID Generator
Generate random UUID v4 identifiers in your browser.
Developer Tools
QR Code Generator
Create a QR code from a URL or plain text and download it.
