Developer Tool
    Free Forever

    Free Base64 Encoder / Decoder

    Encode any text to Base64 or decode Base64 strings back to text. Works with Unicode and UTF-8. Instant, private, browser-based.

    Privacy Safe
    Instant Results
    4.9 Rating
    Base64 Encoder / Decoder
    Encode text to Base64 or decode Base64 to text

    What is Base64 and Why Is It Used?

    Base64 encodes binary data as ASCII text. This is essential because many protocols (HTTP, SMTP, JSON) were designed for text and can corrupt binary data. By converting binary to Base64 text, it can be safely transmitted through any text-based protocol.

    Common examples: JWT (JSON Web Tokens) use Base64URL encoding. Data URIs in HTML embed images as Base64. HTTP Basic Auth sends credentials as Base64. MIME email attachments use Base64 for file encoding.

    How to Use This Tool

    1
    Choose Mode
    Select 'Text → Base64' to encode, or 'Base64 → Text' to decode.
    2
    Enter Input
    Type or paste your text or Base64 string.
    3
    Copy Output
    Click 'Copy' to copy the result to your clipboard.

    Frequently Asked Questions

    Base64 is an encoding scheme that converts binary data into ASCII text format using 64 characters (A-Z, a-z, 0-9, +, /). It's used to safely transmit data in URLs, emails, and data URIs. Base64 increases data size by about 33%.

    Use Base64 for: embedding images in HTML/CSS (data:image/png;base64,...), encoding binary files in JSON or XML, basic email attachments (MIME), JWT tokens, and HTTP Basic Authentication headers.

    No! Base64 is encoding, not encryption. Anyone can decode it instantly — it provides no security. Never use Base64 to 'hide' sensitive data. Use proper encryption (AES, RSA) for security.

    Base64 encodes 3 bytes (24 bits) into 4 characters. If the input length isn't a multiple of 3, padding characters (=) are added — one or two — to make the output a multiple of 4 characters.

    Related Free Tools