GetFixMyFile

Base64 Encoder

Convert text to Base64 or decode Base64 back to UTF-8. Handy for data URLs and debugging — processing stays local.

Base64 encode / decode

Convert text to Base64 or decode Base64 back to UTF-8 text. Local only.

UTF-8 bytes, then standard Base64

Encode turns the text into UTF-8 bytes and then Base64. "Hi" is SGk=. "Hello" is SGVsbG8=. The rupee sign ₹ is the three bytes e2 82 b9, and its Base64 is 4oK5, which is longer than a one-byte character would be. That is why a Latin-1 encoder and this page disagree on ₹, Hindi, and emoji. Padding = is added so the length is a multiple of 4. The alphabet is the standard one with + and /. This page does not emit URL-safe Base64 (- and _).

Decode strips whitespace, runs atob, and decodes the bytes as UTF-8. A broken string, a bad character, or padding that atob rejects shows an error and clears the output. Decode is not a check that the payload is an image or a PDF. This page is text only. Binary files are not accepted. Base64 is not encryption: anyone can decode SGk= back to Hi. Do not put a password or an Aadhaar number in the box and then treat the output as hidden.

You must press Encode or Decode. Typing alone does not update the output. Clear wipes both boxes. If a token you copied uses - and _ instead of + and /, this decoder will reject it until you convert it back to standard Base64.

How to use it

  1. Choose Encode or Decode.
  2. Paste text. For a token, remove line breaks or leave them: decode strips whitespace.
  3. Press the button. Copy the output only after the error line stays empty.
  4. If you needed the value kept secret, do not use Base64. Use a real secret store.

The text stays in this browser tab. GetFixMyFile does not upload it, store it, or include it in analytics.

Questions

Why is ₹ encoded as 4oK5?
The sign is three UTF-8 bytes, not one Latin-1 byte. Base64 encodes those bytes, so the result is 4oK5.
Is the output encrypted?
No. Base64 is a reversible encoding. Decode returns the original text. It does not use a key.
Can I encode a PDF or a photo here?
No. The box is text. A file encoder is a different tool.

Frequently Asked Questions