Skip to content
Util.Ninja

Base64 Encode and Decode Online

Paste text in the top box and press Encode to get Base64, or paste Base64 in the bottom box and press Decode to get the original text back. Works with any language and emoji (UTF-8), and URL-safe Base64 is decoded too.

Text Value

Encode

Base64 Value

Decode

How to use

  1. Type or paste your text into Text Value.
  2. Press Encode: the Base64 result appears in Base64 Value.
  3. To go back, paste Base64 into Base64 Value and press Decode.
  4. Use the copy, open and save buttons to move data in and out quickly.

Frequently asked questions

What is Base64 used for?

Base64 turns binary or special data into plain letters, digits, + and /, so it can travel safely through systems that only handle text: email attachments, data URLs in HTML and CSS, JSON and XML payloads, and HTTP headers such as Basic authentication.

Is Base64 encryption?

No. Base64 is an encoding, not encryption. Anyone can decode it, so never use it to hide passwords or secrets.

Why is the Base64 text longer than my original?

Base64 represents every 3 bytes with 4 characters, so encoded data is about 33% larger than the original.

Does it work with accents, Cyrillic or emoji?

Yes. Text is encoded as UTF-8 before conversion, so “é”, “Привет” or 😀 encode and decode correctly.

What does “=” at the end mean?

The “=” characters are padding. They appear when the input length is not a multiple of 3 bytes, so the decoder knows how many bytes the last group holds.

More free tools

QR code generatorLinks, Wi-Fi, contacts, PNG & SVGWord & character counterWords, characters, reading timeImage compressor & resizerShrink and resize JPG, PNG, WebPPassword generatorStrong passwords & passphrasesJSON formatter & validatorBeautify, validate, tree viewJSON minifierMake JSON smallerJS, CSS & HTML minifierShrink code for faster pagesURL / URI encoderPercent-encode and decodeGUID / UUID generatorUnique IDs in one clickWebP converterJPG, PNG, HEIC to WebPWords FinderUnscramble letters, 10 languages

Need a break? Play a free game → Dots, Hen House Dash and Gold Runner, on phone or PC.