Base64 Encoder & Decoder
Free online Base64 encoder and decoder. Convert text to Base64 or decode Base64 to plain text instantly, with URL-safe mode and file conversion support.
How to use Base64 Encoder & Decoder
- 1
Paste the text you want to convert into the input area.
- 2
Choose Encode or Decode — the result appears immediately.
- 3
Tick URL-safe if you plan to use the output in a URL or query string.
- 4
Copy the result, or use the file uploader to encode a whole file.
Key features
Encode text to Base64 and decode it back
URL-safe alphabet option
Encode entire files via data URIs
Automatic +/space handling on decode
Live output as you type
Copy or download the result
Pro tip
Decoding a JWT? Copy its middle segment into this tool to read the payload instantly.
Base64 Encoder & Decoder — FAQ
Base64 is used to represent binary data (images, files, tokens) as plain ASCII text, making it safe to embed in HTML, JSON, emails and URLs.
No. Base64 is an encoding, not encryption — anyone can decode it instantly. Never use Base64 to protect secrets; use a proper hash or encryption instead.
Standard Base64 uses +, / and =, which are not URL-safe. The URL-safe variant replaces + with - and / with _ and strips padding, so the output works cleanly in URLs.
Yes — upload any file and the tool converts it to a Base64 data URI that you can embed directly in HTML or CSS.
Related tools
JSON Formatter & Validator
Format, minify and validate JSON in real time.
Developer ToolsURL Encoder & Decoder
Percent-encode or decode any URL or query string.
Developer ToolsHash Generator (SHA-1, SHA-256, SHA-512)
Compute SHA-1, SHA-256, SHA-384 and SHA-512 hashes of any text.
Developer ToolsUUID v4 Generator
Generate random UUID v4 identifiers in bulk, instantly.
Developer ToolsUnix Timestamp Converter
Convert Unix timestamps to readable dates and back.
Developer ToolsRegex Tester
Test regular expressions live with syntax highlighting.
Developer Tools