{"json_modified": "2014-03-05T11:30:34.744640", "slug": "Web/JavaScript/Base64_encoding_and_decoding", "tags": ["Base64", "JavaScript", "Typed Arrays", "URL", "URI"], "locale": "en-US", "title": "Base64 encoding and decoding", "translations": [], "modified": "2014-03-05T11:30:34", "label": "Base64 encoding and decoding", "url": "/en-US/docs/Web/JavaScript/Base64_encoding_and_decoding", "last_edit": "2014-03-05T11:30:33", "summary": "<b>Base64</b> is a group of similar <a href=\"https://en.wikipedia.org/wiki/Binary-to-text_encoding\">binary-to-text encoding</a> schemes that represent binary data in an ASCII string format by translating it into a radix-64 representation. The term\n <i>\n  Base64</i>\n originates from a specific <a href=\"https://en.wikipedia.org/wiki/MIME#Content-Transfer-Encoding\">MIME content transfer encoding</a>.", "sections": [{"id": "Documentation", "title": "Documentation"}, {"id": "Tools", "title": "Tools"}, {"id": "Related_Topics", "title": "Related Topics"}, {"id": "The_.22Unicode_Problem.22", "title": "The \"Unicode Problem\""}, {"id": "Solution_.231_.E2.80.93_escaping_the_string_before_encoding_it", "title": "Solution #1 \u2013 escaping the string before encoding it"}, {"id": "Solution_.232_.E2.80.93_rewriting_atob()_and_btoa()_using_TypedArrays_and_UTF-8", "title": "Solution #2 \u2013 rewriting atob() and btoa() using TypedArray s and UTF-8"}, {"id": "Tests", "title": "Tests"}, {"id": "Appendix.3A_Decode_a_Base64_string_to_Uint8Array_or_ArrayBuffer", "title": "Appendix: Decode a Base64 string to Uint8Array or ArrayBuffer"}, {"id": "Functions_which_natively_return_Base64-encoded_strings_in_JavaScript", "title": "Functions which natively return Base64 -encoded strings in JavaScript"}, {"id": "See_also", "title": "See also"}], "id": 77679, "review_tags": ["technical"]}