Base64 Encoder/Decoder
Free online Base64 encoder and decoder. Encode any text to Base64 or decode Base64 back to text. Supports Unicode and URL-safe format. Runs in your browser.
How to Use
- 1 Choose Encode to convert text to Base64, or Decode to convert Base64 back to text
- 2 Paste or type your input into the left area
- 3 Click the Encode or Decode button to process
- 4 Copy the result from the right area with the Copy button
- 5 Toggle URL-safe mode if you need Base64 for use in URLs or filenames
Use Cases
Encode credentials or tokens to Base64 for use in HTTP Authorization headers.
Quickly decode the Base64url payload segment of a JWT to inspect its contents.
Use URL-safe Base64 to safely embed binary or text data in query strings.
Decode Base64-encoded data returned by APIs or config files to read the original content.
FAQ
Yes. All encoding and decoding happens entirely in your browser. Your data is never sent to any server.
Yes. Unlike many other tools that fail on non-ASCII characters, this encoder properly handles Unicode by converting text to UTF-8 bytes before encoding.
Standard Base64 uses + and / characters, which have special meaning in URLs. URL-safe Base64 replaces + with - and / with _, making it safe to use in URLs and filenames without percent-encoding.
Base64 is commonly used to encode binary data (images, files) as text for transmission in email, HTTP headers, JSON payloads, and data URIs. It increases data size by about 33% but ensures safe transport over text-based channels.
The encoded data may not be a UTF-8 text string. Base64 can encode any binary data, not just text. If the original was an image or binary file, the decoded output will not be readable text.
Once the page is loaded, the tool works entirely in your browser with no internet connection required.
Related Tools
BMI Calculator
Calculate your Body Mass Index (BMI) easily with our free online calculator. Supports Metric and Imperial units with instant health category feedback.
Open →EST to CST Converter
Convert EST to CST instantly. Real-time clock sync, bidirectional conversion, and automatic daylight saving time support. Free and no registration required.
Open →JSON Formatter
Free online JSON formatter and validator. Beautify ugly JSON, validate syntax errors, minify JSON, and visualize JSON with interactive tree view.
Open →