Convert text to and from Base64, with URL-safe support.
UTF-8 text. URL-safe uses - and _ without padding. Decoding accepts spaces and line breaks.
Runs in your browser. Your input is processed on this device.
This Base64 encoder and decoder converts text to Base64 and back instantly. Base64 is an encoding scheme that represents binary data using 64 printable ASCII characters, commonly used to embed images in CSS, transmit data in JSON or URLs, and store credentials in HTTP headers.
The tool is fully Unicode-safe (it correctly handles emoji and non-Latin scripts) and supports URL-safe Base64, which swaps the "+" and "/" characters for "-" and "_" so the output can be used in URLs and filenames.
Yes. It encodes text as UTF-8 before converting to Base64, so emoji, accented characters, and non-Latin scripts round-trip correctly — unlike a naive btoa() call, which throws on characters outside Latin-1.
Standard Base64 uses "+" and "/", which have special meaning in URLs. URL-safe Base64 replaces them with "-" and "_" and drops padding, so the encoded string can be placed in a URL, query parameter, or filename without escaping.
No. Base64 is encoding, not encryption. Anyone can decode it, so never use Base64 to protect passwords or sensitive data — it only changes the representation, not the security.