Developer Tools & Snippets
Use these tools to generate code snippets for various languages, create data URIs from files, and inspect Base64-encoded data structures like JWTs.
// Browser (native)
const encoder = new TextEncoder();
const decoder = new TextDecoder();
const b64 = btoa(String.fromCharCode.apply(null, encoder.encode("Hello, world!")));
const plain = decoder.decode(Uint8Array.from(atob(b64), c => c.charCodeAt(0)));
// Node.js (Buffer is built-in and recommended)
const b64Node = Buffer.from("Hello, world!", 'utf8').toString('base64');
const plainNode = Buffer.from(b64Node, 'base64').toString('utf8');JWT (Unsigned Example)
{
"unsigned": "eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJzdWIiOiIxMjMiLCJuYW1lIjoiQWxpY2UiLCJpYXQiOjE1MTYyMzkwMjJ9.",
"note": "This is an insecure JWT with alg:none and no signature. For demonstration only."
}