Base64
A–Z a–z 0–9 + /The 64 characters used in standard Base64=Padding character — added to make length a multiple of 4- _URL-safe variant replaces + and / to avoid URL conflicts3 bytes → 4 charsEvery 3 input bytes become 4 Base64 characters (~33% size increase)data:image/png;base64,Data URL prefix — accepted on decode; Load a file and tick Data URL to add itpastePasted Base64, hex, URL encoding and the rest are recognised and decoded — Undo switches backExamples — click to load
Hello, World!Basic text → Base64{"user":"alice"}JSON payload (common in JWTs)SGVsbG8sIFdvcmxkIQ==Decode → "Hello, World!"data:image/png;base64,iVBORw0…Decode → image preview + DownloadBase32 (RFC 4648)
A–Z 2–7The 32-character alphabet — case-insensitive, no 0/1/8/9=Padding to an 8-character block boundary5 bits / charEncodes 5 bytes → 8 characters (less dense than Base64)Examples — click to load
HelloText → Base32JBSWY3DPDecode → "Hello"URL Encoding
%XXPercent-encoded byte — XX is the hex value of the byteA–Z a–z 0–9 - _ . ~Unreserved characters — never encodedencodeURIComponentEncodes everything except unreserved chars — use for query param valuesencodeURILeaves reserved chars intact — use for full URLs+ vs %20Both represent a space — + is only valid in query strings (form encoding): / ? # [ ] @ ! $ & ' ( ) * + , ; =Reserved characters — encoded when used as data (not structure)Examples — click to load
hello world & moreSpaces and & encodedhttps://example.com/search?q=…Full URL as a query param valuecaf%C3%A9%20au%20laitDecode → "café au lait"HTML Entities
&& — must be escaped to avoid starting an entity<< — must be escaped to avoid opening a tag>> — should be escaped inside attribute values and CDATA"" — must be escaped inside double-quoted attributes'' — must be escaped inside single-quoted attributesExamples — click to load
<script>alert("XSS")</script>Escape for safe HTML outputPrice: £10 & taxAmpersand in text content<b>Hello & World</b>Decode entities back to charactersUnicode Escapes
\uXXXX4-hex-digit escape — covers the Basic Multilingual Plane (U+0000 to U+FFFF)\u{XXXXX}Variable-length ES6 escape — covers all Unicode code points including emojiASCII passthroughCharacters below U+0080 are left as-is — only non-ASCII gets escapedJSON stringsJSON uses \uXXXX to safely embed any character in a string literalExamples — click to load
café résuméAccented characters → \uXXXXHello 你好 мирMixed scripts\u0048\u0065\u006C\u006C\u006FDecode → "Hello"Hex
00–ffEach byte becomes two hex digits (lowercase on encode)UTF-8Text is encoded as UTF-8 first, so non-ASCII spans multiple bytes0x · spacesDecode is lenient — 0x prefixes, spaces and commas are strippedeven lengthDecode needs whole byte pairs — an odd digit count is an errorExamples — click to load
HelloText → hex bytes48 65 6c 6c 6fDecode (spaces ignored) → "Hello"Binary
8 bits / byteEach UTF-8 byte becomes an 8-digit group, space-separated0 1Only zeros and ones — any other character is rejected on decodemultiple of 8Decode groups bits into bytes, so the total must divide by 8Examples — click to load
HiText → binary01001000 01101001Decode → "Hi"ROT13
A↔N · a↔nRotates each letter 13 places — letters only, digits/punctuation untouchedself-inverseApplying ROT13 twice returns the original — encode and decode are identicalnot encryptionA classic obfuscation, not security — trivially reversibleExamples — click to load
Hello, World!Letters rotate, punctuation staysUryyb, Jbeyq!Decode → "Hello, World!"Base64, URL, HTML & Unicode encoding in your browser
Paste any encoded payload — a Base64 string, a data:image/png;base64,… URI, a percent-encoded query string, HTML entities, hex bytes, or Unicode escapes — and the tool automatically detects the format and decodes it. You can also encode text or load files up to 5 MB into Base64 or Data URLs locally without sending data to a server.
- Base64 & URL-safe Base64: Handles standard
+/=and URL-safe-_alphabets, previews decoded PNG, JPEG, WebP, GIF, AVIF, BMP, ICO, and SVG files, and lets you download decoded binary files directly. - URL percent-encoding: Encode query parameters safely or decode copied links containing
%20,%2F, and UTF-8 sequences. - Chain into other tools: Decoded JSON or tokens? Use Send to ▾ on the output pane to pass decoded text straight into the JSON Formatter or JWT Decoder.
Is Base64 encryption?
No. Base64 is a reversible text encoding for representing binary data over text protocols (HTTP headers, JSON, data URIs). Anyone can decode it without a key, so never rely on Base64 to protect secrets.
Can I convert an image or file to a Base64 Data URL?
Yes. Click Load or drop any file (up to 5 MB) onto the input pane, then tick Data URL to include the data:<mime>;base64, prefix automatically.
Does pasted data leave my browser?
Never. All encoding, decoding, file reading, and image previews run locally in your browser with zero network requests.