Convert between text and Base64. Supports standard and URL-safe modes.
Paste the text you want to encode, or the Base64 string you want to decode into the input field.
Choose Standard or URL-safe mode, then click 'Encode' or 'Decode' button.
Review the conversion result and click 'Copy' to copy to clipboard. You can also swap input/output.
Base64 Converter is an online tool that converts between text data and Base64 encoding. It's useful for safely transmitting binary data as text or embedding images using the data URI scheme. In addition to standard Base64, it supports URL-safe mode for safe use in URLs and filenames.
Standard Base64 uses characters "+", "/", and "=", which have special meanings in URLs and can cause issues. URL-safe mode replaces "+" with "-", "/" with "_", and optionally omits the padding "=", making it safe for use in URLs and filenames.
Yes, since UTF-8 encoding is used, multilingual text including Japanese can be correctly encoded and decoded.
Yes, Base64 strings with line breaks, such as those used in PEM certificates, are supported. Line breaks and whitespace are automatically removed before decoding.
Base64 encoding increases the size by approximately 33% compared to the original data (3 bytes become 4 characters). You can see the input/output sizes in real-time on screen.
No, all processing happens entirely in your browser. Your input data is never sent to any server.