{"id":5128,"date":"2026-06-18T13:46:22","date_gmt":"2026-06-18T13:46:22","guid":{"rendered":"https:\/\/rimanagency.com\/base64-encoder-decoder-encode-decode-strings-instantly-online\/"},"modified":"2026-06-18T13:46:22","modified_gmt":"2026-06-18T13:46:22","slug":"base64-encoder-decoder-encode-decode-strings-instantly-online","status":"publish","type":"page","link":"https:\/\/rimanagency.com\/fr\/base64-encoder-decoder-encode-decode-strings-instantly-online\/","title":{"rendered":"Base64 Encoder \/ Decoder \u2014 Encode &#038; Decode Strings Instantly Online"},"content":{"rendered":"<style>.rt-h{background:linear-gradient(135deg,#f1f5e8,#e8efdb);border-radius:14px;padding:32px;margin:0 0 24px;text-align:center}.rt-h h1{margin:0 0 10px;font-size:28px;color:#4a6320}.rt-g{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:0 0 24px}.rt-f,.rt-o{background:#fff;border:1px solid #e0e6d8;border-radius:10px;padding:22px}.rt-f h3,.rt-o h3{margin:0 0 14px;color:#4a6320;font-size:18px}.rt-f label{display:block;font-size:13px;color:#516048;font-weight:600;margin:10px 0 6px}.rt-f input,.rt-f select,.rt-f textarea{width:100%;padding:9px;border:1px solid #d4dac6;border-radius:6px;font-size:14px;box-sizing:border-box;font-family:inherit}.rt-btn{background:#719430;color:#fff;border:none;padding:11px 20px;border-radius:6px;font-weight:700;cursor:pointer;width:100%;margin-top:14px;font-size:15px}.rt-btn:hover{background:#4a6320}.rt-cta{background:linear-gradient(135deg,#719430,#4a6320);color:#fff;border-radius:14px;padding:32px;text-align:center;margin:30px 0}.rt-cta h3{margin:0 0 6px;color:#fff}.rt-cta a{background:#fff;color:#4a6320;padding:12px 28px;border-radius:6px;font-weight:700;text-decoration:none;display:inline-block;margin-top:14px}@media(max-width:768px){.rt-g{grid-template-columns:1fr}}<\/style>\n<div class=\"rt-h\">\n<h1>Base64 Encoder \/ Decoder<\/h1>\n<p>Encode any string to Base64 \u2014 or decode a Base64 string back to its original text. Used in URLs, basic auth, data: URIs, JWTs, email attachments, and just about everywhere data needs to travel as text.<\/p>\n<\/div>\n<div class=\"rt-g\">\n<div class=\"rt-f\">\n<h3>Input<\/h3>\n<p><label>Text to encode or decode<\/label><textarea id=\"b6-in\" rows=\"7\" placeholder=\"Hello, world!\"><\/textarea><label>Mode<\/label><select id=\"b6-mode\"><option value=\"encode\" selected>Encode (text \u2192 Base64)<\/option><option value=\"decode\">Decode (Base64 \u2192 text)<\/option><option value=\"encodeurl\">URL-safe encode (Base64Url)<\/option><option value=\"decodeurl\">URL-safe decode (Base64Url)<\/option><\/select><\/div>\n<div class=\"rt-o\">\n<h3>Output<\/h3>\n<p><textarea id=\"b6-out\" rows=\"8\" readonly style=\"width:100%;padding:10px;border:1px solid #d4dac6;border-radius:6px;font-size:13px;box-sizing:border-box;font-family:Consolas,monospace;background:#fafafa\">Output appears here<\/textarea><button class=\"rt-btn\" style=\"background:#516048;margin-top:10px\" onclick=\"copybase64()\">Copy to Clipboard<\/button><\/div>\n<\/div>\n<p><script>function cB6(){var t=document.getElementById(\"b6-in\").value;var m=document.getElementById(\"b6-mode\").value;var out=\"\";try{if(m===\"encode\")out=btoa(unescape(encodeURIComponent(t)));else if(m===\"decode\")out=decodeURIComponent(escape(atob(t)));else if(m===\"encodeurl\")out=btoa(unescape(encodeURIComponent(t))).replace(\/\\+\/g,\"-\").replace(\/\\\/\/g,\"_\").replace(\/=+$\/,\"\");else if(m===\"decodeurl\"){var p=t.replace(\/-\/g,\"+\").replace(\/_\/g,\"\/\");while(p.length%4)p+=\"=\";out=decodeURIComponent(escape(atob(p)))}}catch(e){out=\"Error: \"+e.message}document.getElementById(\"b6-out\").value=out}[\"b6-in\",\"b6-mode\"].forEach(function(id){document.getElementById(id).addEventListener(\"input\",cB6);document.getElementById(id).addEventListener(\"change\",cB6)});cB6();<\/script><script>function copybase64(){var ta=document.getElementById(\"b6-out\");ta.select();navigator.clipboard.writeText(ta.value);event.target.textContent=\"\u2713 Copied!\";setTimeout(function(){event.target.textContent=\"Copy to Clipboard\"},1500)}<\/script><\/p>\n<h2>How to use the Base64 Encoder\/Decoder<\/h2>\n<p>Paste text or a Base64 string. Choose encode or decode. The output appears in real time. Use the URL-safe variant when you need to embed in a URL or JWT \u2014 it swaps &#8220;+\/&#8221; for &#8220;-_&#8221; and drops trailing &#8220;=&#8221;.<\/p>\n<h2>Why this tool matters<\/h2>\n<p>Base64 lets binary data travel through systems that only handle text \u2014 email, URLs, JSON, XML, environment variables. Every modern API touches Base64: JWT tokens contain three Base64-url segments, basic auth headers are &#8220;Basic <base64(user:pass)>&#8220;, and data: URIs (`data:image\/png;base64,&#8230;`) embed images directly in HTML.<\/p>\n<h2>Common use cases<\/h2>\n<ul>\n<li>Decoding the payload of a JWT token<\/li>\n<li>Creating data: URIs to inline small images in CSS<\/li>\n<li>Encoding credentials for HTTP Basic Auth<\/li>\n<li>Generating Base64-encoded values for webhook payloads<\/li>\n<li>Decoding email attachments quoted in raw message source<\/li>\n<li>Encoding binary parameters for URL query strings<\/li>\n<\/ul>\n<h2>Standard Base64 vs. URL-safe (Base64Url)<\/h2>\n<p>Standard Base64 uses A-Z, a-z, 0-9, +, \/, and = padding. URL-safe Base64 (Base64Url, defined in RFC 4648) replaces + with -, \/ with _, and drops trailing =. JWTs and modern web APIs use URL-safe. Most older systems use standard. Always check what your destination expects.<\/p>\n<h2>Frequently Asked Questions<\/h2>\n<p><strong>Is Base64 encryption?<\/strong><br \/>No. Base64 is encoding \u2014 anyone can decode it. Never use Base64 to &#8220;hide&#8221; sensitive data. Use encryption (AES, RSA) for security.<\/p>\n<p><strong>Why is the output 33% larger?<\/strong><br \/>Base64 represents every 3 bytes of binary as 4 ASCII characters. The size increase is inherent to the format. Use compression (gzip) before Base64-encoding if size matters.<\/p>\n<p><strong>What\\u2019s the difference between btoa and Base64?<\/strong><br \/>`btoa` is the browser\\u2019s built-in Base64 encoder but only handles ASCII. Our tool wraps it with UTF-8 handling so emoji, accented characters, and non-Latin scripts encode correctly.<\/p>\n<p><strong>Can I encode files with this?<\/strong><br \/>No \u2014 this tool handles strings only. For file encoding (image to data: URI, PDF to attachment), use a dedicated file-input tool or run `base64 -i file` in your terminal.<\/p>\n<div class=\"rt-cta\">\n<h3>Building a marketing stack that depends on clean API integrations?<\/h3>\n<p style=\"margin:0;opacity:.95\">Riman Agency builds martech and integration architectures.<\/p>\n<p><a href=\"\/contact\/\">Talk to MarTech<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Base64 Encoder \/ Decoder Encode any string to Base64 \u2014 or decode a Base64 string back to its original text. Used in URLs, basic auth, data: URIs, JWTs, email attachments, and just about everywhere data needs to travel as text. Input Text to encode or decodeModeEncode (text \u2192 Base64)Decode (Base64 \u2192 text)URL-safe encode (Base64Url)URL-safe decode [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-5128","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Base64 Encoder \/ Decoder \u2014 Encode &amp; Decode Strings Instantly Online - Riman Agency<\/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:\/\/rimanagency.com\/fr\/base64-encoder-decoder-encode-decode-strings-instantly-online\/\" \/>\n<meta property=\"og:locale\" content=\"fr_CA\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Base64 Encoder \/ Decoder \u2014 Encode &amp; Decode Strings Instantly Online - Riman Agency\" \/>\n<meta property=\"og:description\" content=\"Base64 Encoder \/ Decoder Encode any string to Base64 \u2014 or decode a Base64 string back to its original text. Used in URLs, basic auth, data: URIs, JWTs, email attachments, and just about everywhere data needs to travel as text. Input Text to encode or decodeModeEncode (text \u2192 Base64)Decode (Base64 \u2192 text)URL-safe encode (Base64Url)URL-safe decode [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/rimanagency.com\/fr\/base64-encoder-decoder-encode-decode-strings-instantly-online\/\" \/>\n<meta property=\"og:site_name\" content=\"Riman Agency\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/rimanagency.com\\\/base64-encoder-decoder-encode-decode-strings-instantly-online\\\/\",\"url\":\"https:\\\/\\\/rimanagency.com\\\/base64-encoder-decoder-encode-decode-strings-instantly-online\\\/\",\"name\":\"Base64 Encoder \\\/ Decoder \u2014 Encode & Decode Strings Instantly Online - Riman Agency\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/rimanagency.com\\\/#website\"},\"datePublished\":\"2026-06-18T13:46:22+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/rimanagency.com\\\/base64-encoder-decoder-encode-decode-strings-instantly-online\\\/#breadcrumb\"},\"inLanguage\":\"fr-CA\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/rimanagency.com\\\/base64-encoder-decoder-encode-decode-strings-instantly-online\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/rimanagency.com\\\/base64-encoder-decoder-encode-decode-strings-instantly-online\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/rimanagency.com\\\/home\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Base64 Encoder \\\/ Decoder \u2014 Encode &#038; Decode Strings Instantly Online\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/rimanagency.com\\\/#website\",\"url\":\"https:\\\/\\\/rimanagency.com\\\/\",\"name\":\"Riman Agency\",\"description\":\"A Full Service Digital Marketing Agency\",\"publisher\":{\"@id\":\"https:\\\/\\\/rimanagency.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/rimanagency.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-CA\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/rimanagency.com\\\/#organization\",\"name\":\"Riman Agency\",\"url\":\"https:\\\/\\\/rimanagency.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-CA\",\"@id\":\"https:\\\/\\\/rimanagency.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/rimanagency.com\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/RIMANagency-all-logos-1-2.png\",\"contentUrl\":\"https:\\\/\\\/rimanagency.com\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/RIMANagency-all-logos-1-2.png\",\"width\":694,\"height\":211,\"caption\":\"Riman Agency\"},\"image\":{\"@id\":\"https:\\\/\\\/rimanagency.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Base64 Encoder \/ Decoder \u2014 Encode & Decode Strings Instantly Online - Riman Agency","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:\/\/rimanagency.com\/fr\/base64-encoder-decoder-encode-decode-strings-instantly-online\/","og_locale":"fr_CA","og_type":"article","og_title":"Base64 Encoder \/ Decoder \u2014 Encode & Decode Strings Instantly Online - Riman Agency","og_description":"Base64 Encoder \/ Decoder Encode any string to Base64 \u2014 or decode a Base64 string back to its original text. Used in URLs, basic auth, data: URIs, JWTs, email attachments, and just about everywhere data needs to travel as text. Input Text to encode or decodeModeEncode (text \u2192 Base64)Decode (Base64 \u2192 text)URL-safe encode (Base64Url)URL-safe decode [&hellip;]","og_url":"https:\/\/rimanagency.com\/fr\/base64-encoder-decoder-encode-decode-strings-instantly-online\/","og_site_name":"Riman Agency","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/rimanagency.com\/base64-encoder-decoder-encode-decode-strings-instantly-online\/","url":"https:\/\/rimanagency.com\/base64-encoder-decoder-encode-decode-strings-instantly-online\/","name":"Base64 Encoder \/ Decoder \u2014 Encode & Decode Strings Instantly Online - Riman Agency","isPartOf":{"@id":"https:\/\/rimanagency.com\/#website"},"datePublished":"2026-06-18T13:46:22+00:00","breadcrumb":{"@id":"https:\/\/rimanagency.com\/base64-encoder-decoder-encode-decode-strings-instantly-online\/#breadcrumb"},"inLanguage":"fr-CA","potentialAction":[{"@type":"ReadAction","target":["https:\/\/rimanagency.com\/base64-encoder-decoder-encode-decode-strings-instantly-online\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/rimanagency.com\/base64-encoder-decoder-encode-decode-strings-instantly-online\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/rimanagency.com\/home\/"},{"@type":"ListItem","position":2,"name":"Base64 Encoder \/ Decoder \u2014 Encode &#038; Decode Strings Instantly Online"}]},{"@type":"WebSite","@id":"https:\/\/rimanagency.com\/#website","url":"https:\/\/rimanagency.com\/","name":"Agence Riman","description":"Une agence de marketing num\u00e9rique \u00e0 service complet","publisher":{"@id":"https:\/\/rimanagency.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/rimanagency.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-CA"},{"@type":"Organization","@id":"https:\/\/rimanagency.com\/#organization","name":"Agence Riman","url":"https:\/\/rimanagency.com\/","logo":{"@type":"ImageObject","inLanguage":"fr-CA","@id":"https:\/\/rimanagency.com\/#\/schema\/logo\/image\/","url":"https:\/\/rimanagency.com\/wp-content\/uploads\/2022\/02\/RIMANagency-all-logos-1-2.png","contentUrl":"https:\/\/rimanagency.com\/wp-content\/uploads\/2022\/02\/RIMANagency-all-logos-1-2.png","width":694,"height":211,"caption":"Riman Agency"},"image":{"@id":"https:\/\/rimanagency.com\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/rimanagency.com\/fr\/wp-json\/wp\/v2\/pages\/5128","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rimanagency.com\/fr\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/rimanagency.com\/fr\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/rimanagency.com\/fr\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/rimanagency.com\/fr\/wp-json\/wp\/v2\/comments?post=5128"}],"version-history":[{"count":0,"href":"https:\/\/rimanagency.com\/fr\/wp-json\/wp\/v2\/pages\/5128\/revisions"}],"wp:attachment":[{"href":"https:\/\/rimanagency.com\/fr\/wp-json\/wp\/v2\/media?parent=5128"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}