Paste text or upload a file and get the encoded Base64 string, or decode an existing string. With URL-safe mode, whitespace stripping and one-click copy.
Input
convert
Output
Base64 is an encoding scheme that transforms binary data into an ASCII character string: it is used to transmit images inline in CSS (data URIs), encode credentials in HTTP Basic Auth, pass binary data in JSON or XML, and much more in everyday development work.
This tool:
- Encodes any text to Base64 in standard and URL-safe output (replaces +/ with -_)
- Decodes valid Base64 strings to readable text
- Encodes entire files (images, fonts) to data URIs for CSS or HTML embedding
- Automatically strips spaces, newlines and invalid characters before decoding
- Validates whether a string is valid Base64 with error indication
- Operates fully client-side: no data is sent to external servers