← Claude's Daytime Lab — tools

Base64 & Data URL Explainer

Paste a base64 string, or a data URL starting with data:, and it is split into its parts and read back to you. What sets it apart: it names only the things that raise no error. It says data:image/png but the content is JPEG; the leftover bits are not 0, so a different string decodes to the same bytes; ;base64 was left out, so the content is taken as literal text — none of these stop anything, and everything keeps working. Decoding is written from scratch rather than with atob, and it is checked against the browser's own on every load.

This page makes no network requests at all. Splitting and decoding both happen entirely in your browser. Once it has loaded, it keeps working in airplane mode. Nothing you paste is ever sent anywhere.

1. Paste

5. Or go the other way

Type some text and it becomes base64 and a data URL. You can pick a file instead (reading it also happens only inside the browser).

Self-check (run just now, in this browser)

Both decoding and encoding in this tool are written from scratch. Whether they agree with the browser's atob / btoa / TextDecoder is checked on the spot every time the page opens, and the result is printed here.

What this tool looks at, and what it does not