Explore 12 Tools
Security · Web Encoding

Base64, JWT Decoder & URL/HTML Encoder

Encode and decode UTF-8 Base64 strings, URL components, HTML entities, and inspect JSON Web Token (JWT) headers and payloads offline.

1 · Input Payload & Transformation Mode

2 · Decoded / Encoded Output

Privacy First: Inspecting bearer tokens and OAuth JWT claims locally prevents accidental credential leakage to third-party debugging servers.
Privacy & Security Notice: 100% of your inputs in the Base64, JWT Decoder & URL/HTML Encoder are processed locally inside your browser. Zero data is uploaded to any server.

How to Encode/Decode Base64, URLs, HTML Entities & JWTs

Select your desired operation from the dropdown menu—Base64 Encode/Decode, JWT Token Inspector, URL Component Encode/Decode, or HTML Entity Encode/Decode—and paste your string into the input box. Click Load Sample JWT to see how JSON Web Token headers and payloads are unpacked locally.

Key Features & Capabilities

  • Encode and decode UTF-8 safe Base64 strings without corrupting multi-byte emoji or international characters
  • Inspect JSON Web Token (JWT) header and payload claims locally without exposing bearer tokens to external servers
  • Escape and unescape URI components and HTML entities (&, <, >, ", ') for XSS-safe rendering
  • Chain transformations effortlessly with 1-click input/output swapping

UTF-8 Safe Encoding & Offline JWT Claim Inspection

Standard browser functions like btoa() and atob() were designed for legacy Latin-1 strings and throw InvalidCharacterError exceptions when given UTF-8 text containing emoji, smart quotes, or non-Latin scripts. Our encoder converts strings through a UTF-8 Uint8Array byte pipeline first, ensuring 100% lossless round-trip Base64 encoding across all Unicode characters.

Web Encoding Formats & Security Use Cases
Format / StandardSpecificationPrimary Engineering PurposeSecurity Note
Base64 (UTF-8 Safe)RFC 4648Embedding binary/UTF-8 payloads in JSON, data: URIs, or HTTP headersEncoding is NOT encryption; anyone can decode Base64
JSON Web Token (JWT)RFC 7519Inspecting alg, sub, exp, and iat claims in bearer tokensDecode offline so live session tokens never hit external logs
URL Component EncodingRFC 3986Safely passing query parameters containing &, =, ?, or spacesUse encodeURIComponent for parameter values
HTML Entity EscapingHTML5 Named RefsEscaping <, >, &, ", ' before rendering code in HTMLPrevents Cross-Site Scripting (XSS) injection

How to Inspect a JSON Web Token (JWT) Safely

A JWT consists of three Base64URL-encoded segments separated by dots: Header.Payload.Signature. Because bearer tokens grant direct access to authenticated APIs, pasting a live production JWT into a server-rendered debugging website is a major security risk. Selecting JWT Token Inspector in this tool decodes the JSON header and payload claims strictly inside your browser tab.

Frequently Asked Questions

Why does native JavaScript btoa() fail on emoji or accented characters?

btoa() treats each UTF-16 code unit as a single byte and throws an error if any character exceeds 0xFF. Our tool encodes strings into UTF-8 bytes via TextEncoder before applying Base64, preserving all Unicode symbols cleanly.

Does the JWT Inspector verify the cryptographic signature?

This tool decodes and formats the Base64URL Header and Payload JSON segments for instant claim inspection and verifies whether a signature segment is present. Cryptographic signature verification requires your backend secret or public JWKS key.

How can I chain multiple encodings together?

Click the "⇄ Swap Input / Output" button to move your current output directly into the input box, then select your next transformation mode.

Explore the Suite

More Free Browser Utilities

View all 12 tools →
Design · Accessibility

APCA Color Contrast Checker

Check perceptual APCA Lc and WCAG 2.x contrast ratios, simulate color blindness, auto-fix accessible shades, and export design tokens.

Launch utility
AI · Engineering

LLM Token Cost Calculator

Compare API token pricing across 23+ frontier LLMs, model prompt caching savings, estimate token counts, and export CSV budgets.

Launch utility
Video · Social

Video Safe Zone Checker

Preview TikTok, Instagram Reels, YouTube Shorts, Snapchat, and LinkedIn vertical safe zones on your 9:16 frames with PNG export.

Launch utility
SEO · Structured Data

Schema.org JSON-LD Generator

Generate validated JSON-LD structured data for 17 Schema.org entity types with 1-click presets and live Google SERP previews.

Launch utility
Content · Localization

Multilingual Lorem Ipsum Generator

Generate synthetic layout filler in 10 languages and developer vocabularies, with RTL script support and HTML/Markdown wrapping.

Launch utility
Text · Dev Formatting

Text Case & Code Identifier Converter

Convert text across 15 programming and editorial cases with bulk find-and-replace, line wrapping, deduplication, and reading stats.

Launch utility
SEO · Social Sharing

Open Graph & SEO Meta Tag Generator

Build complete HTML head metadata, Open Graph tags, and X/Twitter Cards with live SERP truncation audits and social card previews.

Launch utility
Code · Data Engineering

JSON Formatter, Validator & TS Converter

Prettify, validate, and minify JSON payloads, sort object keys deterministically, and convert JSON into TypeScript interfaces or CSV.

Launch utility
Code · Pattern Matching

Regex Tester, Debugger & Pattern Library

Test JavaScript regular expressions in real time with capture group inspection, live string replacement, and plain-English token explanations.

Launch utility
Design · Modern UI

CSS Gradient & Glassmorphism Studio

Design linear, radial, and conic CSS gradients paired with frosted-glass backdrop filters, live interactive preview cards, and CSS export.

Launch utility
Security · Cryptography

SHA Hash, UUID v4 & Password Generator

Generate cryptographic SHA-1/256/384/512 digests, bulk RFC 4122 UUID v4 identifiers, and high-entropy passwords via Web Crypto API.

Launch utility