Base64 Encoder/Decoder

    Convert text to and from Base64 encoding with this online tool.

    Input Text

    Character count: 0

    Output

    Result will appear here...
    Character count: 0

    How to Use the Base64 Encoder/Decoder

    Enter or paste your text in the input box, then select "Encode" to convert to Base64 or "Decode" to convert from Base64. The result will appear in the output box on the right.

    Features

    • Base64 Encoding - Convert plain text to Base64 encoded format.
    • Base64 Decoding - Convert Base64 encoded text back to plain text.
    • UTF-8 Support - Properly handles UTF-8 characters during encoding and decoding.
    • Copy Function - Easily copy the encoded or decoded text to your clipboard.

    What is Base64?

    Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. It uses a set of 64 characters (A-Z, a-z, 0-9, + and /) to represent binary data, with = used for padding.

    Common Use Cases

    • Email Attachments - Base64 is used in email systems to encode binary attachments for transmission over text-based protocols.
    • Data URIs - Embedding images or other binary data directly in HTML, CSS, or JavaScript using data: URIs.
    • API Communication - Safely transmitting binary data in JSON payloads or other text-based API formats.

    Related Tools

    JSON Formatter

    Format, validate, and beautify your JSON data with this free online JSON formatter. Features include JSON validation, beautification, and minification.

    Use Tool

    Regex Tester

    Test and debug regular expressions with real-time feedback using this free online regex tester tool. Visualize matches and understand regex patterns easily.

    Use Tool

    HTML Minifier

    Compress HTML by removing whitespace, comments, and more with this free online HTML minifier tool.

    Use Tool