Free Developer Tool
Text To Base64 Encoder And Decoder
Encode plain text into Base64 or decode Base64 strings back into readable text instantly in your browser using the native btoa and atob APIs. Supports UTF-8 characters, URL safe encoding, and file input. No uploads to any server, completely private.
🔐
Drop a text file here or click to browse
Or paste text directly into the editor below
Uses the standard alphabet with plus, slash, and padding
Encoded 50 B of text into 68 B of Base64.Live
50 BInput Size
68 BOutput Size
50Input Characters
68Output Characters
+36%Size Change
How to use the Text to Base64 Encoder and Decoder
Choose Encode to convert plain text into Base64, or Decode to convert a Base64 string back into readable text
Type or paste your input directly into the editor, or drop a text file onto the upload area to load it automatically
Select Standard Base64 for general use, or URL Safe Base64 when the output needs to be placed inside a URL or filename
Enable line breaks every 76 characters if you need output formatted the way many email and MIME systems expect it
Use Swap and Convert to instantly move the output back into the input field and flip between encode and decode modes
Check the Plain Text Input or Base64 Input tab to review what you typed, and the Output tab to see the converted result
If decoding fails, verify the string only contains valid Base64 characters and matches the variant you selected
Open the Base64 Reference tab to learn about the alphabet, padding, and common real world uses of Base64 encoding
Click Copy Output to copy the result to your clipboard, or Download to save it as a standalone text file
All encoding and decoding happens locally using the native btoa and atob browser APIs. Your text is never uploaded to any server



