How to use the universal converter
- Paste text, Base64 or a percent-encoded URL into the box; multi-line input is fine.
- Press Encode to Base64 for readable text, or Decode automatically for an encoded string. Percent escapes are tested first, then Base64, and the status line names the format that matched.
- Copy the result or feed it back with Use result as input; for the full page behind a tool, open the Base64 or URL collection below.
What do you want to do?
| Goal | Tool to use | What it is best for |
|---|---|---|
| Encode text to Base64 | Base64 Encode | JSON fields, data URLs and API parameters; UTF-8 text and emoji are handled correctly |
| Decode Base64 to text | Base64 Decode | JWT segments, data: URLs, API payloads and any Base64 string that should read as text |
| Encode a URL value | URL Encode | Query strings, path segments and form values that contain spaces, & or non-ASCII text |
| Decode a URL value | URL Decode | Links full of %20 and %E4 escapes; the decoder turns each escape back into a character |
Verified examples
| Input | Format | Output | Checked |
|---|---|---|---|
hello | Base64 encode (5 bytes) | aGVsbG8= | Verified 2026-11-14 |
你好 (6 UTF-8 bytes) | Base64 encode | 5L2g5aW9 | Verified 2026-11-14 |
a b&c | URL encode | a%20b%26c | Verified 2026-11-14 |
aGVsbG8= | Base64 decode | hello | Verified 2026-11-14 |
Base64 vs URL encoding vs base64url
| Property | Base64 (RFC 4648 §4) | URL encoding (RFC 3986) | base64url (RFC 4648 §5) |
|---|---|---|---|
| What it encodes | Any byte sequence → 64 ASCII symbols | Unsafe URL characters → %XX per UTF-8 byte | Any byte sequence → URL-safe ASCII |
| Alphabet | A–Z, a–z, 0–9, +, /, with 0–2 = | Unreserved characters kept; escapes use % and 2 hex digits | Same 64 symbols, but - and _ replace + and / |
| Size change | Always 4 characters per 3 bytes: +33.3% | Only unsafe bytes grow, each to 3 characters | Same +33.3%; padding is often dropped |
| Typical use | JSON strings, data URLs, JWT segments, MIME email | Query strings, redirect parameters, path segments | JWTs, cookies, filenames and URL parameters |
| Typical pitfall | Missing padding is rejected by strict decoders | A literal + can arrive as a space | Strict Base64 decoders reject - and _ |
Common errors and fixes
Missing padding. If a Base64 value is rejected or decodes short, count its length: a valid value has a length divisible by four. Add one or two
=characters at the end, or let Base64 Decode restore them automatically.base64url uses
-and_. JWT segments replace+and/with those two characters, so a strict standard decoder may reject the string. Base64 Decode normalises both characters before decoding, and the page explains which variant it found.A
+in a query string becomes a space. Many URL parsers read+as a space, so an encoded value containing+can change after one round trip. Percent-encode it as%2B, or paste the link into URL Decode to see exactly which characters the server will receive.UTF-8 becomes mojibake. JavaScript's
atob()returns one byte per character, so decoding non-ASCII Base64 with it produces garbled text instead of the original characters. Base64 Decode reads the decoded bytes as UTF-8 and flags binary output instead of guessing, so Chinese and emoji survive the round trip.
Capability and limits
- Runs in the browser. Every conversion is JavaScript in the current tab; there is no API call behind the buttons.
- Nothing is uploaded. The converter sends no network request with your text, and it keeps working after the page has loaded offline.
- UTF-8 safe. Text is converted to UTF-8 bytes before Base64 encoding and decoded back as UTF-8, so Chinese, Japanese and emoji round-trip without manual repair.
- No account. No sign-up, no login and no usage quota; the tools are free and the converter itself sets no cookies.
- Single input limit. There is no fixed character cap: the input textarea has no
maxlengthattribute, so the practical limit is the memory available to the browser tab. A few hundred kilobytes convert instantly; a few megabytes may pause the tab, and very large files are better handled with a command-line decoder.
Browse by theme
The site covers two encoding families. Each collection is led by its most-used tool, with the other direction one click below it.
Theme A · Base64
Base64 Decode
Base64 rewrites bytes as ASCII text. Decode a Base64 value back to words, or encode text before it goes into a data URL, JSON field or API parameter.
Theme B · URL encoding
URL Decode
Percent-encoding makes text safe inside a URL. Decode a link full of %20 escapes, or encode a value before building a query string.
Which tool do I need?
The input in front of you usually names the tool. Text that looks like Base64, such as SGVsbG8=, goes to Base64 Decode, which reads it back and explains any failure. Readable text that must become Base64 goes to Base64 Encode, which handles UTF-8 for Chinese and emoji. JWT segments, data: URLs and API payloads also go to Base64 Decode, because that page covers the developer wrappers; when the format is unknown, Decode automatically checks percent escapes first, then Base64. A URL or query string full of %20 and %E4 goes to URL Decode, and text that must travel safely inside a URL goes to URL Encode, which escapes spaces, ampersands and non-ASCII characters in 3-character groups.
Base64 or URL encoding: how to choose
Both formats exist to move data through text-only channels, but they solve different problems and are not interchangeable. A Base64 value pasted into a URL decoder fails, and a percent-encoded string pasted into a Base64 decoder fails too. The first changes the alphabet: 64 symbols, 3 bytes in, 4 characters out. The second changes individual characters: each unsafe byte becomes % plus 2 hex digits, so 3 characters replace 1.
Size tells them apart. Base64 always grows the payload by 33.3%, so 12 UTF-8 bytes become 16 characters. URL encoding grows only where text leaves the 66-character unreserved set, so a b&c=中 goes from 7 characters to 21. Their homes differ too: Base64 appears inside JSON (RFC 8259), email/MIME with 76-character lines and JWT segments, while percent-encoding belongs in URLs under RFC 3986 — query strings, redirect parameters and path segments.
The numbers behind both encodings
Base64 (RFC 4648). The alphabet has 64 symbols: 26 uppercase + 26 lowercase + 10 digits + + + /. Three input bytes become 4 output characters, a 4/3 ratio, which is the 33.3% growth; the last group gets 0, 1 or 2 = padding characters. The URL-safe variant in §5 replaces exactly 2 symbols (+ and /) with - and _, and MIME email wraps at 76 characters, which is 57 input bytes per line.
Measured on this site. Hello 世界 is 8 characters and 12 UTF-8 bytes, and encodes to 16 Base64 characters. The 21-character Chinese sentence used on the encoder page is 44 UTF-8 bytes and becomes 60 Base64 characters. A 52-character token decodes to 37 characters of text, and 你好 (2 characters, 6 bytes) becomes 8 Base64 characters.
Percent-encoding (RFC 3986). 66 characters are unreserved (26 + 26 + 10 + 4), 18 are reserved (7 generic delimiters plus 11 sub-delimiters), and every escaped byte costs 3 characters: % plus 2 hex digits. 你 is E4 BD A0 in UTF-8, so it becomes %E4%BD%A0; 你好 becomes 18 characters. Hello, 世界! grows from 10 characters to 30, and JavaScript's encodeURIComponent leaves 71 characters unescaped. A space is %20 (3 characters) in a URL but + (1 character) in form data, where a literal plus must be written %2B.
This site. 8 pages, 5 of which carry a converter (the universal one plus 4 specialist tools), 8 sitemap URLs, 28 redirect rules for old URLs, and one 1200×630 Open Graph image of 40,299 bytes. The examples above were verified on 14 November 2026, and the converters make 0 network requests after the page loads.
Private by design
Every converter is JavaScript in the tab: there is no API call behind the buttons and 0 requests carry your text, so the tools keep working offline. For the detail behind that, the about page covers testing and the privacy policy covers data handling; no account is needed.
Frequently asked questions
Is this a Base64 converter?
Yes. The universal converter above encodes text to Base64 and decodes Base64 back to text, and the page links to four specialist converters for both Base64 and URL percent-encoding. Use Base64 Encode for readable text, Base64 Decode for a Base64 string, URL Encode for values that go into a URL, and URL Decode for a link full of %XX escapes.
Does it work offline?
Yes, after the page has loaded once. Every conversion is local JavaScript in the tab and makes no API call, so turning off Wi-Fi still leaves the buttons working; only the first page load needs the network.
Are files uploaded?
No. Nothing you type or paste is sent to a server, stored or logged, and the converter makes no network request with your input. The privacy policy explains the only optional third-party scripts, analytics and ads, and how cookie consent gates them.
What is the difference between Base64 and URL encoding?
Base64 rewrites arbitrary bytes as 64 readable characters so they can travel through text-only systems; it always grows the data by 33.3%. URL encoding replaces unsafe characters with %XX escapes so text can sit inside a URL, and it only changes the characters that need it. Neither is encryption, and neither replaces the other.
Is there a size limit?
There is no fixed character cap: the input textarea has no maxlength attribute, and the practical limit is the memory available to the browser tab. A few hundred kilobytes convert instantly, a few megabytes may pause the tab, and very large files are better handled with a command-line decoder.