Data and JSON tools Free · No sign-up · No upload

Base64 Encode

Convert text, or the exact bytes of any file, to Base64. Choose the URL-safe alphabet or 76-character lines. Secrets and files are encoded in your browser and never uploaded.

  • No email required
  • Stays on your device
  • UTF-8 safe
  • URL-safe option
Text
  • Runs on your device. Files are never uploaded.
  • Free and unlimited. No sign-up, no watermark.
Private: processed in your browserNo upload waitIN: Text → OUT: Base64
How was Base64 encode text?
How it works

Base64 encode text in three steps

No account, no email, no waiting for an upload.

  1. STEP 01

    Paste text or open a file

    Pasted text is encoded as UTF-8. An opened file is encoded byte for byte.

  2. STEP 02

    Pick the variant

    Use the standard alphabet, or switch to URL-safe, which uses - and _ and drops the = padding. Optionally break lines every 76 characters.

  3. STEP 03

    Copy the result

    The note shows the size before and the number of characters after.

What you get

What Base64 encode text does, and what it doesn't

We'd rather tell you up front than surprise you after the download.

What you get

  • UTF-8 correctAccents, emoji and non-Latin scripts encode the way other tools expect, not as broken Latin-1.
  • Files tooOpen an image, a PDF or any file to get its Base64, with no limit besides your device's memory.
  • URL-safe variantUse it for JWTs, filenames and query strings, where + and / cause trouble.
  • MIME line wrappingBreak output into 76-character lines, as used in email attachments and PEM-style blocks.
  • Size feedbackSee how large the encoded text is, since Base64 is about a third bigger than the source.

Good to know

  • Encoding is not encryptionAnyone can decode Base64. Never use it to hide passwords or keys.
  • Larger outputExpect roughly 33% more characters than bytes in.
  • No data: URL prefixThe output is just the Base64 text. For pictures, Image to Base64 is more convenient.
Private by design

Your data never leave your device

The tool runs inside your browser instead of on our servers, so there is nothing to upload, store or delete afterwards.

Typical online tool upload

Your device→Their server→Your device

Your file travels over the internet, sits on someone else's computer for a while, and you wait for the upload and the download.

Mediaextractr no upload

Your device does all the work

The tool loads into your browser once, then works on your file locally. Nothing is sent, so nothing can leak.

Made for real work

When people use Base64 encode text

Build an Authorization header

Encode user:password for Basic auth, when you must.

Embed small assets

Put an icon or font directly in CSS or HTML.

Prepare MIME content

Wrap lines at 76 characters for email-style blocks.

Pass binary data through text-only channels

Move bytes through JSON, XML or query strings.

Compare

Mediaextractr vs typical upload tools

MediaextractrPrivateTypical upload tools
Your file is uploadedNeverYes
Sign-up neededNoOften, after a few files
Daily file limitNoneOften 1–2 free files
WatermarkNeverSometimes
Wait for upload & downloadNoYes
Speed on very large filesDepends on your deviceDepends on their servers

What Base64 is for

Base64 turns any bytes into 64 safe, printable characters. It exists so that binary data can travel through systems built for text, like JSON, email or URLs.

It is not compression and not security. The output is larger than the input and trivially reversible.

Standard or URL-safe

The standard alphabet uses + and /, plus = as padding. Those characters have special meaning in URLs. The URL-safe variant swaps them for - and _ and removes padding, which is what JWTs use.

  • Use standard for email, data URLs and most APIs.
  • Use URL-safe for tokens, filenames and query parameters.
  • Reverse either with Base64 decode.
  • Turn a picture into a data URL with Image to Base64.

Encoding files and images

Open any file instead of pasting text to get its Base64, for example a small PNG to embed in CSS. Add the prefix data:image/png;base64, in front of the result to make a data URL. Keep an eye on size: Base64 inflates data by a third, so it suits icons and short snippets, not large pictures.

FAQ

Questions, answered

How do I encode text to Base64?

Paste the text and copy the Base64 result.

Are passwords or files I encode sent anywhere?

No. Encoding is performed by the browser in this tab, so what you paste or open never leaves your device.

Does it handle emoji and accents?

Yes. Text is encoded as UTF-8, so the result matches other standard tools.

What is URL-safe Base64?

A variant with - and _ instead of + and /, and no = padding.

Is Base64 secure?

No. It is an encoding, not encryption. Anyone can decode it.

Can I encode a file from my phone?

Yes. Choose the file from your device in a current mobile browser.