{"content":{"intro":"Base64 is a way of writing any data using only 64 safe, printable characters: A–Z, a–z, 0–9, plus \"+\" and \"/\", with \"=\" used as padding at the end. It lets binary data travel through systems that were designed for plain text. This tool encodes text to Base64 and decodes Base64 back to text.","sections":[["Full support for any language and emoji","The browser's basic Base64 function fails on characters outside the Latin alphabet. This tool converts your text to UTF-8 bytes first, so accented letters, non-English scripts and emoji encode and decode correctly."],["Why the result is longer","Every 3 bytes of input become 4 Base64 characters, so encoded text is about a third larger than the original. That's the trade-off for being safe to paste into emails, JSON, HTML and URLs."],["It is not encryption","Anyone can decode Base64 instantly, no key or password is involved. Never use it to \"hide\" passwords or private data."],["Base64 vs Base64URL","Web tokens such as JWTs use a URL-safe variant that swaps \"+\" for \"-\" and \"/\" for \"_\" and often drops the \"=\" padding. To decode one of those here, change the characters back and add \"=\" until the length is a multiple of 4."]],"faqs":[{"q":"What do the = signs at the end mean?","a":"They are padding. Base64 works in groups of 4 characters, and one or two = signs fill the last group when the input length isn't a multiple of 3 bytes."},{"q":"Why does it say \"That is not valid Base64\"?","a":"The input contains characters outside the Base64 alphabet, is missing padding, or is Base64URL. Remove spaces and line breaks and check the ending."},{"q":"Can I encode an image to Base64?","a":"Yes, use the Image to Base64 tool, which reads the image file and gives you a data URL you can paste into HTML or CSS."}]},"copy":{"explain":"Encoding turns your text into UTF-8 bytes and writes every 3 bytes as 4 Base64 characters. Decoding reverses it and accepts both normal and URL-safe Base64, with or without padding. Base64 is an encoding, not encryption.","example":"&quot;Hello, नमस्ते 👋&quot; → SGVsbG8sIOCkqOCkruCkuOCljeCkpOClhyDwn5GL. Tap &quot;⇅ Swap&quot; to decode it straight back. Switch on URL-safe and &quot;+&quot; and &quot;/&quot; become &quot;-&quot; and &quot;_&quot; with no &quot;=&quot; padding.","intro":"Base64 writes any data using only 64 safe, printable characters, so it can travel through systems designed for plain text. This tool encodes text to Base64 and decodes it back as you type, with full support for any language and emoji, an optional URL-safe mode and a size comparison.","sections":[["Full support for any language and emoji","The browser's basic Base64 function fails on characters outside the Latin alphabet. This tool converts your text to UTF-8 bytes first, so accented letters, non-English scripts and emoji encode and decode correctly."],["Why the result is longer","Every 3 bytes of input become 4 Base64 characters, so encoded text is about a third larger than the original. The Input and Output boxes show the exact sizes."],["Base64 vs Base64URL","Web tokens such as JWTs use a URL-safe variant that swaps &quot;+&quot; for &quot;-&quot; and &quot;/&quot; for &quot;_&quot; and drops the &quot;=&quot; padding. Switch on &quot;URL-safe&quot; to encode that way; the decoder reads both forms automatically."],["It is not encryption","Anyone can decode Base64 instantly, no key or password is involved. Never use it to &quot;hide&quot; passwords or private data."]],"faqs":[{"q":"What do the = signs at the end mean?","a":"They are padding. Base64 works in groups of 4 characters, and one or two = signs fill the last group when the input length isn't a multiple of 3 bytes."},{"q":"Why does it say the text is not valid Base64?","a":"The input has characters outside the Base64 alphabet, or it decodes to binary data (like an image) rather than text. Remove any extra characters and check you copied the whole string."},{"q":"Can I encode an image to Base64?","a":"Yes, use the Image to Base64 tool, which reads the image file and gives you a data URL you can paste into HTML or CSS."}]},"feat":[["Encode and decode","Converts as you type, in either direction."],["Every language and emoji","Full UTF-8 support, so nothing gets garbled."],["URL-safe mode","Swap + and / for - and _ when the result goes in a link."],["Size comparison","See how much bigger Base64 makes your data."]],"faqx":[{"q":"Why does Base64 make data about 33% bigger?","a":"Base64 writes every 3 bytes as 4 characters, so the output is about four-thirds of the input size, plus up to two = signs of padding. The Input and Output boxes show the exact sizes and the percentage increase for your text."},{"q":"Is Base64 a safe way to hide a password?","a":"No. Base64 is an encoding, not encryption, and anyone can decode it in a second. For example, user:pass encodes to dXNlcjpwYXNz, which decodes straight back. Use proper encryption or hashing for anything secret."},{"q":"What is &quot;Hello&quot; in Base64?","a":"&quot;Hello&quot; encodes to SGVsbG8=. The five bytes do not divide evenly into groups of three, so one = is added as padding. &quot;Hi&quot; gives SGk= for the same reason. With URL-safe mode on, the = padding is left out."},{"q":"When should I use URL-safe Base64?","a":"Use it when the result goes into a web address, file name or token such as a JWT. Normal Base64 uses + and /, which have special meaning in URLs. URL-safe mode writes them as - and _ and drops the = padding."},{"q":"Why does Hindi text become so long in Base64?","a":"Base64 works on UTF-8 bytes, and most Devanagari characters take 3 bytes each. नमस्ते is 6 characters but 18 bytes, which becomes 24 Base64 characters: 4KSo4KSu4KS44KWN4KSk4KWH. English letters take just 1 byte each."},{"q":"Can I decode Base64 that has line breaks in it?","a":"Yes. Spaces and line breaks are removed before decoding, so Base64 copied from emails or files that wrap it every 76 characters works as is. Missing = padding at the end is added back automatically."},{"q":"How do I decode a JWT token?","a":"A JWT has three parts separated by dots. Paste only the first or second part, not the whole token, into Decode mode to read the header or the payload as JSON. The third part is a signature and does not decode to readable text."},{"q":"How do I check an encoding by decoding it back?","a":"Tap &quot;Swap: use result as input&quot;. The result moves into the input box and the tool switches between Encode and Decode, so you see your original text again. It works in both directions."}]}