(Shortcut: Ctrl + Enter)
Or choose an image file to get a Base64 Data URINo file selected

Base64 Encoder and Decoder

Free online Base64 encoder and decoder for text and image Data URI conversion. Supports UTF-8, fast conversion, and local browser processing.

Common Developer Tools

How to use

  • Base64 encoding:Enter text, then click Encode or press Ctrl+Enter to encode it as Base64.
  • Base64 decoding:Enter a Base64 string, then click Decode to convert it back to text.
  • Swap content:Use Swap to exchange the input and output content quickly.
  • Image to Base64:Choose an image file to generate a Base64 Data URI automatically.
  • Copy result:Use Copy result to copy the output to your clipboard.

FAQ

What is Base64 encoding?
Base64 represents binary data with printable characters and is commonly used for transport, embedding, and API payloads.
Which characters are supported?
This tool supports UTF-8 text, including English, Chinese, Japanese, numbers, symbols, and other Unicode characters.
When should I use Base64?
Base64 is useful for email transfer, data storage, API payloads, and embedding images in HTML or CSS.