[{"data":1,"prerenderedAt":158},["ShallowReactive",2],{"tool-content-en-base64":3},{"id":4,"title":5,"body":6,"description":148,"extension":149,"locale":150,"meta":151,"navigation":152,"path":153,"seo":154,"stem":155,"toolId":156,"__hash__":157},"tools\u002Ftools\u002Fen\u002Fbase64.md","Base64 Encoder and Decoder",{"type":7,"value":8,"toc":133},"minimark",[9,14,18,21,25,41,49,53,60,63,67,89,93,96,100,103,107,112,126,130],[10,11,13],"h2",{"id":12},"what-is-base64","What is Base64?",[15,16,17],"p",{},"Base64 represents binary data with printable ASCII characters. It is commonly used to carry small binary values through text-based formats such as JSON, HTML, CSS, email, and URLs.",[15,19,20],{},"Base64 is not encryption. Anyone who receives the encoded value can decode it, so it should not be used to protect passwords, keys, or other sensitive information.",[10,22,24],{"id":23},"how-to-encode-and-decode-text","How to encode and decode text",[26,27,28,32,35,38],"ol",{},[29,30,31],"li",{},"Select Text mode.",[29,33,34],{},"Choose Encode or Decode.",[29,36,37],{},"Enter UTF-8 text or Base64 content.",[29,39,40],{},"Run the conversion, then copy or download the result.",[15,42,43,44,48],{},"This tool handles Chinese, emoji, and other Unicode text as UTF-8 instead of passing multibyte characters directly to the browser's ",[45,46,47],"code",{},"btoa"," function.",[10,50,52],{"id":51},"files-and-data-urls","Files and Data URLs",[15,54,55,56,59],{},"File mode can convert a local file to plain Base64 or a complete Data URL that includes its MIME type. Data URLs can be embedded in HTML or CSS, for example ",[45,57,58],{},"data:image\u002Fpng;base64,...",".",[15,61,62],{},"When decoding a Data URL, its MIME type is used for the downloaded Blob. Plain Base64 contains no filename or media type, so it is downloaded as generic binary data.",[10,64,66],{"id":65},"standard-and-url-safe-base64","Standard and URL-safe Base64",[15,68,69,70,73,74,77,78,73,81,84,85,88],{},"URL-safe Base64 replaces ",[45,71,72],{},"+"," and ",[45,75,76],{},"\u002F"," with ",[45,79,80],{},"-",[45,82,83],{},"_",", and it often omits trailing ",[45,86,87],{},"="," padding. It is suitable for URLs, JWTs, and filenames. The decoder accepts both forms and restores omitted padding automatically.",[10,90,92],{"id":91},"why-does-base64-increase-file-size","Why does Base64 increase file size?",[15,94,95],{},"Four Base64 characters represent three bytes, so the encoded value is usually about one third larger than the original binary data. Base64 is not an efficient long-term representation for large files.",[10,97,99],{"id":98},"privacy-and-security","Privacy and security",[15,101,102],{},"Text and files are processed in your current browser and are never uploaded to a server. File contents are not intentionally persisted in local storage.",[10,104,106],{"id":105},"frequently-asked-questions","Frequently asked questions",[108,109,111],"h3",{"id":110},"why-does-decoded-unicode-text-look-corrupted","Why does decoded Unicode text look corrupted?",[15,113,114,115,117,118,121,122,125],{},"The original bytes may not be UTF-8, or the encoder may have passed multibyte characters directly to ",[45,116,47],{},". This tool uses ",[45,119,120],{},"TextEncoder"," and a strict UTF-8 ",[45,123,124],{},"TextDecoder",", reporting invalid bytes instead of silently producing corrupted text.",[108,127,129],{"id":128},"why-can-base64-decoding-fail","Why can Base64 decoding fail?",[15,131,132],{},"The input may contain invalid characters, incorrect padding, or an impossible encoded length. Regular spaces and line breaks are ignored automatically.",{"title":134,"searchDepth":135,"depth":135,"links":136},"",2,[137,138,139,140,141,142,143],{"id":12,"depth":135,"text":13},{"id":23,"depth":135,"text":24},{"id":51,"depth":135,"text":52},{"id":65,"depth":135,"text":66},{"id":91,"depth":135,"text":92},{"id":98,"depth":135,"text":99},{"id":105,"depth":135,"text":106,"children":144},[145,147],{"id":110,"depth":146,"text":111},3,{"id":128,"depth":146,"text":129},"Encode and decode Base64 online with UTF-8 text, file, Data URL, and URL-safe support. Data stays in your browser.","md","en",{},true,"\u002Ftools\u002Fen\u002Fbase64",{"title":5,"description":148},"tools\u002Fen\u002Fbase64","base64","X-HL_OH5X7yj6Ku_kPZAgpYoyEV78VwpweORpXdlYHs",1792391416261]