Base64 Decoding with Ignorable Characters using SIMD instructions

preprint OA: closed
📄 Open PDF Full text JSON View at publisher

Abstract

The base64 format is ubiquitous: it is used in emails and Web documents to encode binary data as text. By convention, base64 text often includes ignorable characters such as spaces. We introduce the first base64-decoding algorithms with support for ignorable characters designed for single-instruction-multiple-data (SIMD) instructions. Our novel functions multiply the base64 decoding speed compared to traditional methods. Our algorithms have been implemented for different hardware architectures (ARM and x64). Our approach has been widely adopted in JavaScript runtimes and Web browsers.
Full text 1,562 characters · extracted from oa-doi-fallback · 2 sections · click to expand

Abstract

The base64 format is ubiquitous: it is used in emails and Web documents to encode binary data as text. By convention, base64 text often includes ignorable characters such as spaces. We introduce the first base64-decoding algorithms with support for ignorable characters designed for single-instruction-multiple-data (SIMD) instructions. Our novel functions multiply the base64 decoding speed compared to traditional methods. Our algorithms have been implemented for different hardware architectures (ARM and x64). Our approach has been widely adopted in JavaScript runtimes and Web browsers. Supplementary Material File (base64whatwg-2.pdf) - Download - 307.18 KB Information & Authors Information Version history Copyright This work is licensed under a Non Exclusive No Reuse License.

Keywords

Authors Metrics & Citations Metrics Article Usage 126views 80downloads Citations Download citation Daniel Lemire. Base64 Decoding with Ignorable Characters using SIMD instructions. Authorea. 03 September 2025. DOI: https://doi.org/10.22541/au.175692137.72576748/v1 DOI: https://doi.org/10.22541/au.175692137.72576748/v1 If you have the appropriate software installed, you can download article citation data to the citation manager of your choice. Simply select your manager software from the list below and click Download. For more information or tips please see 'Downloading to a citation manager' in the Help menu.

Text is read by the "Ask this paper" AI Q&A widget below. Extraction quality varies by source — PMC NXML preserves structure cleanly, OA-HTML may include some navigation residue, and OA-PDF can have broken hyphenation. The publisher copy (via DOI) is the canonical version.

My notes (saved in your browser only)

Ask this paper AI returns verbatim quotes from the full text · source: oa-doi-fallback

Answers must be backed by verbatim quotes from this paper's full text. Hallucinated quotes are dropped automatically; if no verbatim passage answers the question, we say so. How this works

Citation neighborhood (no data yet)

We don't have any in-corpus citations linked to this paper yet. This is a recent paper (2025) — citers typically take a year or two to land, and the OpenAlex reference graph may still be filling in.

Source provenance

europepmc
last seen: 2026-05-20T01:45:00.602351+00:00
unpaywall
last seen: 2026-06-02T02:00:03.124865+00:00