{"id":261762,"date":"2025-05-28T17:13:36","date_gmt":"2025-05-28T17:13:36","guid":{"rendered":"https:\/\/peraltafinancing.com\/analytics\/understanding-base64\/"},"modified":"2025-05-28T17:13:36","modified_gmt":"2025-05-28T17:13:36","slug":"understanding-base64","status":"publish","type":"post","link":"https:\/\/fivemor.com\/?p=261762","title":{"rendered":"Understanding Base64"},"content":{"rendered":"<p> <br \/>\n<\/p>\n<div id=\"article-start\">\n<p><span style=\"font-weight: 400;\">Base64 is a binary-to-text encoding methodology that helps represent binary data in ASCII string format. It\u2019s often used to encode data for transmission over media that are mostly text, like emails, JSON-based APIs, etc., so that binary data like images and files don\u2019t get corrupted. The term Base64 comes from the fact that it uses 64 characters \u2013 A-Z, a-z, 0-9, +, and \/ to represent data. In recent years, i<\/span>t <span style=\"font-weight: 400;\">has been widely used in multimodal AI applications, embedded systems, cloud-based services, and web development. In this article, we\u2019ll learn more about Base64 and how to use it.<\/span><\/p>\n<h2 class=\"wp-block-heading\" id=\"h-why-base64\"><span style=\"font-weight: 400;\">Why Base64?<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Base64 is mostly used in cases where binary data (e.g., images, videos, model weights, etc.) needs to be passed through text-based infrastructures without being altered or corrupted. But why is it a popular choice amongst so many other types of encodings? Let\u2019s try to understand.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Base64 is:<\/span><\/p>\n<ul class=\"wp-block-list\">\n<li><b>Text-safe<\/b><span style=\"font-weight: 400;\">: Can embed binary data in text-based formats like HTML, XML, JSON, etc.<\/span><\/li>\n<li><b>Easy to transport<\/b><span style=\"font-weight: 400;\">: No issues with character encoding or data corruption.<\/span><\/li>\n<li><b>Common for images<\/b><span style=\"font-weight: 400;\">: Often used in web development to embed images directly in HTML\/CSS or JSON payloads.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">And here\u2019s how other famous encodings are compared to Base64.<\/span><\/p>\n<figure class=\"wp-block-table\">\n<table class=\"has-fixed-layout\">\n<tbody>\n<tr>\n<td><b>Encoding\u00a0<\/b><\/td>\n<td><b>Purpose<\/b><\/td>\n<td><b>Use Case<\/b><\/td>\n<td><b>Size Impact<\/b><\/td>\n<\/tr>\n<tr>\n<td><strong>Base64<\/strong><\/td>\n<td><span style=\"font-weight: 400;\">Binary to text<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Embedding images\/files in HTML, JSON, etc.<\/span><\/td>\n<td><span style=\"font-weight: 400;\">~33% increase<\/span><\/td>\n<\/tr>\n<tr>\n<td><strong>Hex<\/strong><\/td>\n<td><span style=\"font-weight: 400;\">Binary to Hexadecimal<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Debugging, network traces<\/span><\/td>\n<td><span style=\"font-weight: 400;\">~100% increase<\/span><\/td>\n<\/tr>\n<tr>\n<td><strong>Gzip<\/strong><\/td>\n<td><span style=\"font-weight: 400;\">Compression<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Actual size reduction for text\/binary<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Compression ratio-dependent<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p><em>Also Read: <a href=\"https:\/\/www.analyticsvidhya.com\/blog\/2020\/08\/types-of-categorical-data-encoding\/\" target=\"_blank\" rel=\"noreferrer noopener\">What are Categorical Data Encoding Methods | Binary Encoding<\/a><\/em><\/p>\n<h2 class=\"wp-block-heading\" id=\"h-how-does-base64-work\"><span style=\"font-weight: 400;\">How Does Base64 Work?<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Now let\u2019s try to understand how Base64 works. Here\u2019s a walkthrough of the step-by-step conversion of the string <\/span><b>\u201cHello\u201d<\/b><span style=\"font-weight: 400;\"> into its Base64 format.<\/span><\/p>\n<h3 class=\"wp-block-heading\" id=\"h-step-1-convert-the-text-to-ascii-bytes\"><span style=\"font-weight: 400;\">Step 1: Convert the Text to ASCII Bytes<\/span><\/h3>\n<figure class=\"wp-block-table\">\n<table class=\"has-fixed-layout\">\n<tbody>\n<tr>\n<td><b>Character<\/b><\/td>\n<td><b>ASCII Decimal Value<\/b><\/td>\n<td><b>Binary Value (8 bits)<\/b><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">H<\/span><\/td>\n<td><span style=\"font-weight: 400;\">72<\/span><\/td>\n<td><span style=\"font-weight: 400;\">01001000<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">e<\/span><\/td>\n<td><span style=\"font-weight: 400;\">101<\/span><\/td>\n<td><span style=\"font-weight: 400;\">01100101<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">l<\/span><\/td>\n<td><span style=\"font-weight: 400;\">108<\/span><\/td>\n<td><span style=\"font-weight: 400;\">01101100<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">l<\/span><\/td>\n<td><span style=\"font-weight: 400;\">108<\/span><\/td>\n<td><span style=\"font-weight: 400;\">01101100<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">o<\/span><\/td>\n<td><span style=\"font-weight: 400;\">111<\/span><\/td>\n<td><span style=\"font-weight: 400;\">01101111<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p><span style=\"font-weight: 400;\">So now, our string \u201cHello\u201d would look like 01001000 01100101 01101100 01101100 01101111<\/span>.<\/p>\n<p><span style=\"font-weight: 400;\">That\u2019s 5 characters \u00d7 8 bits = 40 bits.<\/span><\/p>\n<h3 class=\"wp-block-heading\" id=\"h-step-2-break-the-binary-into-6-bit-groups\"><span style=\"font-weight: 400;\">Step 2: Break the Binary into 6-bit Groups<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Base64 operates on <\/span><b>6-bit blocks<\/b><span style=\"font-weight: 400;\">, so we group the 40 bits into chunks of 6 which was previously in chunks of 8:\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">01001000 01100101 01101100 01101100 01101111<\/span><\/p>\n<p><span style=\"font-weight: 400;\">When these chunks of 8 are grouped in groups of 6 they look like this:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">010010 000110 010101 101100 011011 000110 1111<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Since 40 isn\u2019t directly divisible by 6, we have to pad some 0s at the end. We now have 6 full 6-bit blocks and 1 leftover 4-bit block. We pad the last block with 2 zero bits to make it a full 6-bit chunk:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">010010 000110 010101 101100 011011 000110 1111<\/span><b>00<\/b><\/p>\n<h3 class=\"wp-block-heading\" id=\"h-step-3-convert-6-bit-groups-to-decimal\"><span style=\"font-weight: 400;\">Step 3: Convert 6-bit Groups to Decimal<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">We know 2^6 is 64. So, our range will be in between 0 to 63.<\/span><\/p>\n<figure class=\"wp-block-table\">\n<table class=\"has-fixed-layout\">\n<tbody>\n<tr>\n<td><b>6-bit binary<\/b><\/td>\n<td><b>Decimal<\/b><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">010010<\/span><\/td>\n<td><span style=\"font-weight: 400;\">18<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">000110<\/span><\/td>\n<td><span style=\"font-weight: 400;\">6<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">010101<\/span><\/td>\n<td><span style=\"font-weight: 400;\">21<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">101100<\/span><\/td>\n<td><span style=\"font-weight: 400;\">44<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">011011<\/span><\/td>\n<td><span style=\"font-weight: 400;\">27<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">000110<\/span><\/td>\n<td><span style=\"font-weight: 400;\">6<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">111100<\/span><\/td>\n<td><span style=\"font-weight: 400;\">60<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<h3 class=\"wp-block-heading\" id=\"h-step-4-map-to-base64-characters\"><span style=\"font-weight: 400;\">Step 4: Map to Base64 Characters<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Following the standard Base64 character table, we will map our decimal values to the corresponding characters.<\/span><\/p>\n<figure class=\"wp-block-image size-full is-resized\"><img fetchpriority=\"high\" decoding=\"async\" width=\"377\" height=\"451\" src=\"https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/05\/tucMa.webp\" alt=\"standard Base64 character table\" class=\"wp-image-236191\" style=\"width:451px;height:auto\" srcset=\"https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/05\/tucMa.webp 377w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/05\/tucMa-251x300.webp 251w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/05\/tucMa-150x179.webp 150w\" sizes=\"(max-width: 377px) 100vw, 377px\"\/><figcaption class=\"wp-element-caption\"><span style=\"font-weight: 400;\">Source \u2013 <\/span><a href=\"https:\/\/i.sstatic.net\/tucMa.png\" target=\"_blank\" rel=\"nofollow noopener\"><span style=\"font-weight: 400;\">Link<\/span><\/a><\/figcaption><\/figure>\n<figure class=\"wp-block-table\">\n<table class=\"has-fixed-layout\">\n<tbody>\n<tr>\n<td><b>Decimal<\/b><\/td>\n<td><b>Base64 Character<\/b><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">18<\/span><\/td>\n<td><span style=\"font-weight: 400;\">S<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">6<\/span><\/td>\n<td><span style=\"font-weight: 400;\">G<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">21<\/span><\/td>\n<td><span style=\"font-weight: 400;\">V<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">44<\/span><\/td>\n<td><span style=\"font-weight: 400;\">s<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">27<\/span><\/td>\n<td><span style=\"font-weight: 400;\">b<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">6<\/span><\/td>\n<td><span style=\"font-weight: 400;\">G<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">60<\/span><\/td>\n<td><span style=\"font-weight: 400;\">8<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p><span style=\"font-weight: 400;\">We get \u201cSGVsbG8\u201d as our Base64 encoding for our string \u201cHello\u201d.<\/span><\/p>\n<h3 class=\"wp-block-heading\" id=\"h-step-5-add-padding\"><span style=\"font-weight: 400;\">Step 5: Add Padding<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Since our original string had 5 bytes (not a multiple of 3), Base64 requires padding with \u201c=\u201d to make the output length a multiple of 4 characters.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">5 bytes = 40 bits -&gt; 6 full base64 chars + 2 more characters (from padded bits) -&gt; Total 8 characters<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Final Base64 encoded string: \u201cHello\u201d -&gt; SGVsbG8=<\/span><\/p>\n<p><em>Also Read: <a href=\"https:\/\/www.analyticsvidhya.com\/blog\/2021\/05\/complete-guide-on-encode-numerical-features-in-machine-learning\/\" target=\"_blank\" rel=\"noreferrer noopener\">Complete Guide on Encoding Numerical Features in Machine Learning<\/a><\/em><\/p>\n<h2 class=\"wp-block-heading\" id=\"h-python-implementation-of-base64\">Python Implementation of Base64<\/h2>\n<p><span style=\"font-weight: 400;\">Now that you understand how Base64 works, let me show you how to implement it in Python. We\u2019ll first try to encode and decode some text, and then do the same with an image.<\/span><\/p>\n<h3 class=\"wp-block-heading\" id=\"h-encoding-and-decoding-text\"><span style=\"font-weight: 400;\">Encoding and Decoding Text<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Let\u2019s encode this simple text using Base64 and then decode the encoded string back to its original form.<\/span><\/p>\n<pre class=\"wp-block-code\"><code><span style=\"font-weight: 400;\">import base64<\/span>\n\n<span style=\"font-weight: 400;\"># Text encoding<\/span>\n<span style=\"font-weight: 400;\">message = \"Hello World\"<\/span>\n<span style=\"font-weight: 400;\">encoded = base64.b64encode(message.encode())<\/span>\n<span style=\"font-weight: 400;\">print(\"Encoded:\", encoded)<\/span>\n\u00a0\n<span style=\"font-weight: 400;\"># Decoding it back<\/span>\n<span style=\"font-weight: 400;\">decoded = base64.b64decode(encoded).decode()<\/span>\n<span style=\"font-weight: 400;\">print(\"Decoded:\", decoded)<\/span><\/code><\/pre>\n<p><strong>Output<\/strong><\/p>\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"350\" height=\"64\" src=\"https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/05\/output-1.webp\" alt=\"Encoding and decoding text with Base64\" class=\"wp-image-236193\" srcset=\"https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/05\/output-1.webp 350w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/05\/output-1-300x55.webp 300w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/05\/output-1-150x27.webp 150w\" sizes=\"auto, (max-width: 350px) 100vw, 350px\"\/><\/figure>\n<h3 class=\"wp-block-heading\" id=\"h-encoding-and-decoding-images\"><span style=\"font-weight: 400;\">Encoding and Decoding Images<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">In vision-related applications, especially with <a href=\"https:\/\/www.analyticsvidhya.com\/blog\/2024\/09\/vision-language-models-2\/\" target=\"_blank\" rel=\"noreferrer noopener\">Vision Language Models<\/a> (VLMs), images are often encoded in Base64 when:<\/span><\/p>\n<ul class=\"wp-block-list\">\n<li><span style=\"font-weight: 400;\">Transmitting images via JSON payloads to or from APIs.<\/span><\/li>\n<li><span style=\"font-weight: 400;\">Embedding images for training and serving multimodal models.<\/span><\/li>\n<li><span style=\"font-weight: 400;\">Using CLIP, BLIP, LLaVA or other Vision-Language Transformers that accept images as serialized Base64 strings.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Here\u2019s a simple Python code to encode and decode Images.<\/span><\/p>\n<pre class=\"wp-block-code\"><code><span style=\"font-weight: 400;\">from PIL import Image<\/span>\n<span style=\"font-weight: 400;\">import base64<\/span>\n<span style=\"font-weight: 400;\">import io<\/span>\n\n<span style=\"font-weight: 400;\"># Load and encode image<\/span>\n\n<span style=\"font-weight: 400;\">img = Image.open(\"example.jpeg\")<\/span>\n<span style=\"font-weight: 400;\">buffered = io.BytesIO()<\/span>\n\n<span style=\"font-weight: 400;\">img.save(buffered, format=\"JPEG\")<\/span>\n<span style=\"font-weight: 400;\">img_bytes = buffered.getvalue()<\/span>\n<span style=\"font-weight: 400;\">img_base64 = base64.b64encode(img_bytes).decode('utf-8')<\/span>\n\n<span style=\"font-weight: 400;\">print(\"Base64 String:\", img_base64[:100], \"...\")\u00a0 # Truncated<\/span><\/code><\/pre>\n<p><strong>Output<\/strong><\/p>\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"28\" src=\"https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/05\/output-2.webp\" alt=\"Base64 for compression and transmission of data\" class=\"wp-image-236195\" srcset=\"https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/05\/output-2.webp 800w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/05\/output-2-300x11.webp 300w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/05\/output-2-768x27.webp 768w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/05\/output-2-150x5.webp 150w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\"\/><\/figure>\n<p><span style=\"font-weight: 400;\">We can also decode our base 64 encoded data back to the image using the below code.<\/span><\/p>\n<pre class=\"wp-block-code\"><code><span style=\"font-weight: 400;\">from PIL import Image<\/span>\n<span style=\"font-weight: 400;\">import base64<\/span>\n<span style=\"font-weight: 400;\">import io<\/span>\n<span style=\"font-weight: 400;\">from IPython.display import display, Image as IPythonImage<\/span>\n\n<span style=\"font-weight: 400;\"># Assume `img_base64` is the base64 string<\/span>\n\n<span style=\"font-weight: 400;\">img_data = base64.b64decode(img_base64)<\/span>\n\n<span style=\"font-weight: 400;\">img = Image.open(io.BytesIO(img_data))<\/span>\n<span style=\"font-weight: 400;\">display(IPythonImage(data=img_data))<\/span><\/code><\/pre>\n<p><strong>Output<\/strong><\/p>\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"225\" height=\"225\" src=\"https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/05\/output-3.webp\" alt=\"Encoding and decoding images with Base64\" class=\"wp-image-236197\" srcset=\"https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/05\/output-3.webp 225w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/05\/output-3-150x150.webp 150w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/05\/output-3-96x96.webp 96w\" sizes=\"auto, (max-width: 225px) 100vw, 225px\"\/><\/figure>\n<p><span style=\"font-weight: 400;\">To learn more about Base64 and find many more encoders and decoders, you can refer this <\/span><a href=\"https:\/\/base64.guru\/\" target=\"_blank\" rel=\"nofollow noopener\"><span style=\"font-weight: 400;\">site<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/p>\n<h2 class=\"wp-block-heading\" id=\"h-things-to-keep-in-mind-while-using-base64\"><span style=\"font-weight: 400;\">Things to Keep in Mind While Using Base64<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Although Base64 is of great use in various use cases across domains, here are a few things to note while working with it.<\/span><\/p>\n<ol class=\"wp-block-list\">\n<li><b> Size Overhead (~33%): <\/b><span style=\"font-weight: 400;\">For every 3\u202fbytes of binary, you output 4\u202fbytes of text. On large batches (e.g., thousands of high\u2011res frames), this can consume network and storage bandwidth quickly. Consider compressing images (JPEG\/PNG) before Base64 and using streaming if possible.<\/span><\/li>\n<li><b> Memory &amp; CPU Load: <\/b><span style=\"font-weight: 400;\">Converting and buffering an entire image at once can spike overall memory usage during encoding. Similarly, decoding into raw bytes and then parsing via an image library also adds CPU overhead.<\/span><\/li>\n<li><b> Not a Compression Algorithm: <\/b><span style=\"font-weight: 400;\">Base64 doesn\u2019t reduce size, it inflates it. Always apply true compression (e.g., JPEG, WebP) on the binary data <\/span><b>before<\/b><span style=\"font-weight: 400;\"> encoding to Base64.<\/span><\/li>\n<li><b> Security Considerations: <\/b><span style=\"font-weight: 400;\">If we blindly concatenate Base64 strings into HTML or JSON without cleaning, you could open XSS or JSON\u2011injection vectors. Also, extremely large Base64 data can exhaust the parsers and enforce maximum payload sizes at the gateway.<\/span><\/li>\n<\/ol>\n<h2 class=\"wp-block-heading\" id=\"h-conclusion\"><span style=\"font-weight: 400;\">Conclusion<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">In an era where models can \u201csee\u201d as well as \u201cread\u201d, Base64 has quietly become a cornerstone of multimodal systems. It plays a very important role in data encoding by bridging the gap between binary data and text\u2011only systems. In vision\u2011language workflows, it standardizes how images travel from mobile clients to cloud GPUs, while preserving reproducibility and easing integration.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Making images compatible with text-based infrastructure has always been a complex problem to solve. Base64 encoding provides a practical solution to this, enabling image transmission over APIs and packaging datasets for training.<\/span><\/p>\n<div class=\"border-top py-3 author-info my-4\">\n<div class=\"author-card d-flex align-items-center\">\n<div class=\"flex-shrink-0 overflow-hidden\">\n                                    <a href=\"https:\/\/www.analyticsvidhya.com\/blog\/author\/shaik_hamzah\/\" class=\"text-decoration-none active-avatar\"><br \/>\n                                                                       <img decoding=\"async\" src=\"https:\/\/av-eks-lekhak.s3.amazonaws.com\/media\/lekhak-profile-images\/converted_image_v51ydD3.webp\" width=\"48\" height=\"48\" alt=\"Shaik Hamzah Shareef\" loading=\"lazy\" class=\"rounded-circle\"\/><\/p>\n<p>                                <\/a>\n                                <\/div>\n<\/p><\/div>\n<p>GenAI Intern @ Analytics Vidhya | Final Year @ VIT Chennai<br \/>Passionate about AI and machine learning, I&#8217;m eager to dive into roles as an AI\/ML Engineer or Data Scientist where I can make a real impact. With a knack for quick learning and a love for teamwork, I&#8217;m excited to bring innovative solutions and cutting-edge advancements to the table. My curiosity drives me to explore AI across various fields and take the initiative to delve into data engineering, ensuring I stay ahead and deliver impactful projects.<\/p>\n<\/p><\/div>\n<\/p><\/div>\n<p><h4 class=\"fs-24 text-dark\">Login to continue reading and enjoy expert-curated content.<\/h4>\n<p>                        <button class=\"btn btn-primary mx-auto d-table\" data-bs-toggle=\"modal\" data-bs-target=\"#loginModal\" id=\"readMoreBtn\">Keep Reading for Free<\/button>\n                    <\/p>\n\n","protected":false},"excerpt":{"rendered":"<p>Base64 is a binary-to-text encoding methodology that helps represent binary data in ASCII string format. It\u2019s often used to encode data for transmission over media that are mostly text, like emails, JSON-based APIs, etc., so that binary data like images and files don\u2019t get corrupted. The term Base64 comes from the fact that it uses [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":261763,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12033],"tags":[94038,5715],"dealstore":[],"offerexpiration":[],"class_list":["post-261762","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-analytics","tag-base64","tag-understanding"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Understanding Base64 - Som2ny Network<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/fivemor.com\/?p=261762\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Understanding Base64 - Som2ny Network\" \/>\n<meta property=\"og:description\" content=\"Base64 is a binary-to-text encoding methodology that helps represent binary data in ASCII string format. It\u2019s often used to encode data for transmission over media that are mostly text, like emails, JSON-based APIs, etc., so that binary data like images and files don\u2019t get corrupted. The term Base64 comes from the fact that it uses [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/fivemor.com\/?p=261762\" \/>\n<meta property=\"og:site_name\" content=\"Som2ny Network\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-28T17:13:36+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/05\/Understanding-Base64.webp.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"872\" \/>\n\t<meta property=\"og:image:height\" content=\"473\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/fivemor.com\/?p=261762#article\",\"isPartOf\":{\"@id\":\"https:\/\/fivemor.com\/?p=261762\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371\"},\"headline\":\"Understanding Base64\",\"datePublished\":\"2025-05-28T17:13:36+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/fivemor.com\/?p=261762\"},\"wordCount\":1044,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/fivemor.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/fivemor.com\/?p=261762#primaryimage\"},\"thumbnailUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/05\/Understanding-Base64.webp.webp\",\"keywords\":[\"Base64\",\"Understanding\"],\"articleSection\":[\"Analytics\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/fivemor.com\/?p=261762#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/fivemor.com\/?p=261762\",\"url\":\"https:\/\/fivemor.com\/?p=261762\",\"name\":\"Understanding Base64 - Som2ny Network\",\"isPartOf\":{\"@id\":\"https:\/\/fivemor.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/fivemor.com\/?p=261762#primaryimage\"},\"image\":{\"@id\":\"https:\/\/fivemor.com\/?p=261762#primaryimage\"},\"thumbnailUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/05\/Understanding-Base64.webp.webp\",\"datePublished\":\"2025-05-28T17:13:36+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/fivemor.com\/?p=261762#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/fivemor.com\/?p=261762\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/fivemor.com\/?p=261762#primaryimage\",\"url\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/05\/Understanding-Base64.webp.webp\",\"contentUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/05\/Understanding-Base64.webp.webp\",\"width\":872,\"height\":473},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/fivemor.com\/?p=261762#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/fivemor.com\/?bp_activities=1\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Understanding Base64\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/fivemor.com\/#website\",\"url\":\"https:\/\/fivemor.com\/\",\"name\":\"Som2ny Network\",\"description\":\"Daily Deals\",\"publisher\":{\"@id\":\"https:\/\/fivemor.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/fivemor.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/fivemor.com\/#organization\",\"name\":\"Som2ny Network\",\"url\":\"https:\/\/fivemor.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png\",\"contentUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png\",\"width\":300,\"height\":86,\"caption\":\"Som2ny Network\"},\"image\":{\"@id\":\"https:\/\/fivemor.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png\",\"caption\":\"admin\"},\"sameAs\":[\"https:\/\/fivemor.com\"],\"url\":\"https:\/\/fivemor.com\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Understanding Base64 - Som2ny Network","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/fivemor.com\/?p=261762","og_locale":"en_US","og_type":"article","og_title":"Understanding Base64 - Som2ny Network","og_description":"Base64 is a binary-to-text encoding methodology that helps represent binary data in ASCII string format. It\u2019s often used to encode data for transmission over media that are mostly text, like emails, JSON-based APIs, etc., so that binary data like images and files don\u2019t get corrupted. The term Base64 comes from the fact that it uses [&hellip;]","og_url":"https:\/\/fivemor.com\/?p=261762","og_site_name":"Som2ny Network","article_published_time":"2025-05-28T17:13:36+00:00","og_image":[{"width":872,"height":473,"url":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/05\/Understanding-Base64.webp.webp","type":"image\/webp"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/fivemor.com\/?p=261762#article","isPartOf":{"@id":"https:\/\/fivemor.com\/?p=261762"},"author":{"name":"admin","@id":"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371"},"headline":"Understanding Base64","datePublished":"2025-05-28T17:13:36+00:00","mainEntityOfPage":{"@id":"https:\/\/fivemor.com\/?p=261762"},"wordCount":1044,"commentCount":0,"publisher":{"@id":"https:\/\/fivemor.com\/#organization"},"image":{"@id":"https:\/\/fivemor.com\/?p=261762#primaryimage"},"thumbnailUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/05\/Understanding-Base64.webp.webp","keywords":["Base64","Understanding"],"articleSection":["Analytics"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/fivemor.com\/?p=261762#respond"]}]},{"@type":"WebPage","@id":"https:\/\/fivemor.com\/?p=261762","url":"https:\/\/fivemor.com\/?p=261762","name":"Understanding Base64 - Som2ny Network","isPartOf":{"@id":"https:\/\/fivemor.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/fivemor.com\/?p=261762#primaryimage"},"image":{"@id":"https:\/\/fivemor.com\/?p=261762#primaryimage"},"thumbnailUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/05\/Understanding-Base64.webp.webp","datePublished":"2025-05-28T17:13:36+00:00","breadcrumb":{"@id":"https:\/\/fivemor.com\/?p=261762#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/fivemor.com\/?p=261762"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/fivemor.com\/?p=261762#primaryimage","url":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/05\/Understanding-Base64.webp.webp","contentUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/05\/Understanding-Base64.webp.webp","width":872,"height":473},{"@type":"BreadcrumbList","@id":"https:\/\/fivemor.com\/?p=261762#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/fivemor.com\/?bp_activities=1"},{"@type":"ListItem","position":2,"name":"Understanding Base64"}]},{"@type":"WebSite","@id":"https:\/\/fivemor.com\/#website","url":"https:\/\/fivemor.com\/","name":"Som2ny Network","description":"Daily Deals","publisher":{"@id":"https:\/\/fivemor.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/fivemor.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/fivemor.com\/#organization","name":"Som2ny Network","url":"https:\/\/fivemor.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/fivemor.com\/#\/schema\/logo\/image\/","url":"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png","contentUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png","width":300,"height":86,"caption":"Som2ny Network"},"image":{"@id":"https:\/\/fivemor.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/fivemor.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png","caption":"admin"},"sameAs":["https:\/\/fivemor.com"],"url":"https:\/\/fivemor.com\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/posts\/261762","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=261762"}],"version-history":[{"count":0,"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/posts\/261762\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/media\/261763"}],"wp:attachment":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=261762"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=261762"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=261762"},{"taxonomy":"dealstore","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fdealstore&post=261762"},{"taxonomy":"offerexpiration","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fofferexpiration&post=261762"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}