Skip to content
Created by Iternal Technologies, the AI Strategy ExpertsBy Iternal (opens in a new tab)

Escape & Encode

Base64 Encode

Text

Paste text to encode it as Base64 as you type.

Base64

About Base64 Encode

Base64 Encode turns text into the Base64 alphabet defined by RFC 4648. Paste a note, a token or a short phrase and the output updates as you type. The text is read as UTF-8, so accents and emoji survive a round trip.

The standard alphabet uses + and / and adds = padding when the byte length is not a multiple of three. The URL-safe option writes - and _ instead and leaves the padding off, which is what many URLs and file names expect.

Encoding runs in your browser and the text you paste is never uploaded. Swap sends the result to Base64 Decode so you can check the round trip.

Frequently asked questions

What does Base64 encoding do?

It rewrites text as ASCII using the Base64 alphabet so the text can travel through systems that only allow a limited character set. The tool reads the text as UTF-8 bytes, then writes those bytes with letters, digits, + and /.

What does the URL-safe alphabet change?

It writes - and _ instead of + and /, and it omits the trailing = padding. The bytes are the same. Turn it on when the result has to sit in a URL, a cookie or a file name.

Does this match btoa?

For plain ASCII, the standard alphabet matches btoa. btoa throws when a character is above U+00FF, and it treats characters from U+0080 through U+00FF as one byte rather than UTF-8. This tool always encodes UTF-8, so accents and emoji round-trip.

Is the text I paste uploaded anywhere?

No. Encoding runs in your browser and the text you paste is never uploaded, logged or stored. Google Analytics records page views and feature use, never content.

  • Base64 Decode

    Decode Base64 to text as you type, including emoji and accents. Standard and URL-safe alphabets both work. Runs in your browser; your text is never uploaded.

  • JSON Escape / Unescape

    Turn text into a valid JSON string literal, or decode one back to plain text.

  • URL Encode / Decode

    Percent-encode text for a URL, or decode a percent-encoded string.

  • HTML Escape / Unescape

    Escape text for HTML, or decode entities back to characters.

  • JavaScript Escape / Unescape

    Escape text as a JavaScript string literal, or decode those escapes.

Iternal · AI Blueprint Builder

Plan the AI initiative, not just the output

The AI Blueprint Builder scores each use case across value, feasibility, cost, governance, risk, adoption and readiness before you commit budget. Free to start, about 60 minutes.

Open the AI Blueprint Builder (opens in a new tab)