devtools

Encoders & Decoders

Data constantly moves through channels that only accept text, so it gets wrapped: Base64 for binary in a data URI or email, percent-encoding for characters in a URL, HTML entities to keep markup from being parsed as markup, and Base64URL for the segments of a JWT. These encoders and decoders translate in both directions with correct UTF-8 handling, so emoji and non-Latin scripts round-trip cleanly rather than turning to mojibake. Each one runs entirely on your device, which is the point when you are decoding an authorization header or a token — the kind of value you should never paste into a site that ships it off to a server.