Base64, URL & Hash Toolkit
Encode and decode UTF-8 Base64, URL query strings, HTML entities, and Hex—and compute hardware-accelerated SHA-256, SHA-512, and HMAC webhook signatures offline via Web Crypto API.
Base64, URL & Hash Toolkit: the tool
eyJzdWIiOiJ1c3JfOTkxMmEiLCJzY29wZSI6ImFkbWluOnJlYWQiLCJub3RlIjoiVVRGLTggUmVhZHkg8J+agCJ9
Implementing OAuth 2.0, webhook signature verification, or zero-trust API security?
DEESU engineers build hardened authentication flows, idempotent Stripe/GitHub webhook receivers, and encrypted backend services.
How it works
UTF-8 Safe Base64 vs Standard Browser btoa() Pitfalls
JavaScript's legacy btoa() and atob() helpers only accept Latin-1 (ISO-8859-1) characters. The moment your string contains an emoji, curly quote, Euro symbol, or Arabic/CJK character, calling btoa() throws an InvalidCharacterError crash in production.
Our Base64 utility encodes strings through TextEncoder into canonical UTF-8 byte arrays before Base64 serialization, and decodes cleanly back through TextDecoder. It also supports RFC 4648 Section 5 Base64URL mode (- and _ instead of + and /, with trailing = padding stripped), which is mandatory for JSON Web Tokens (JWT), OAuth 2.0 PKCE code challenges, and URL-safe API cursors.
encodeURIComponent vs encodeURI: Avoiding Broken Query Parameters
Choosing the wrong JavaScript URL encoder is a frequent source of broken OAuth redirects and malformed webhook callbacks. Both functions serve distinct roles:
encodeURIComponent(): Encodes reserved URL characters including?,&,=,/, and#. Always use this for individual query parameter values, redirect targets, or search terms.encodeURI(): Preserves protocol and structural characters (https://,/,?,&,=) while encoding spaces and non-ASCII characters. Use this only when encoding a complete URL.- Interactive Query String Inspection: Pasting a full URL into our parser breaks down protocol, host, path, fragment, and every decoded query parameter into a clean table for rapid debugging.
Computing SHA-256, SHA-512, and HMAC Signatures via Web Crypto API
Cryptographic digests and HMAC (Hash-based Message Authentication Code) signatures are the backbone of webhook verification for Stripe, GitHub, Shopify, and Slack. Instead of relying on slow or unmaintained JavaScript crypto polyfills, this toolkit invokes the browser's hardware-accelerated Web Crypto API (window.crypto.subtle.digest and crypto.subtle.sign).
By combining a raw request body with your webhook signing secret under HMAC-SHA256, you can reproduce exact X-Hub-Signature-256 or Stripe signature digests locally to debug signature mismatch errors without ever leaking secret keys to a remote server.
HTML Entity Escaping and Hex Encoding for Security Debugging
Properly escaping <, >, &, ", and ' into HTML entities prevents Cross-Site Scripting (XSS) when rendering untrusted strings in HTML emails, XML feeds, or server-rendered templates. Meanwhile, UTF-8 Hex conversion exposes exact raw byte sequences—making invisible zero-width spaces, smart quotes, or byte-order marks (BOM) immediately visible when troubleshooting serialization bugs.
Questions, answered
crypto.subtle) with zero network calls. Your payloads and secret keys never leave local memory.= padding characters when byte length is not divisible by 3.+, /, and =, which have special meanings inside URLs and query strings. URL-Safe Base64 (Base64URL) replaces + with -, / with _, and strips = padding, making it safe for JWT segments, filenames, and query tokens.Related reading and help
Web DevelopmentThe 2026 JWT Security Flaws Guide: Algorithm Confusion, Token Expiry & Replay Protection
Inside modern JWT vulnerabilities: how Algorithm Confusion (HS256 vs RS256) works, the alg:none flaw, and production zero-trust verification in TypeScript.
Nov 3, 20267 min read
Web DevelopmentContent Security Policy (CSP) & HTTP Security Headers in 2026: Stop XSS Without Breaking Next.js or Analytics
Master strict Content Security Policy (CSP), nonces, HSTS, and Permissions-Policy in 2026. Stop XSS attacks without breaking Next.js, Stripe, or Google Ads.
Nov 18, 202610 min read
Cloud & DevOpsSoftware Supply Chain Security in 2026: CycloneDX SBOMs, Malicious NPM Defense & Lockfile Integrity
Protect applications against software supply chain attacks in 2026. Master CycloneDX SBOM generation, malicious npm package defense, and lockfile verification.
Nov 6, 20266 min read- DEESU serviceWeb DevelopmentWeb applications built to be found and built to convert — SEO-minded from the first commit, from storefronts to internal portals.See the service
More free tools
- Open Graph & social meta tag generatorGenerate and test Open Graph, Twitter Card, and SEO meta tags with live previews for Google, X, LinkedIn, and Facebook.
- Google Play & App Store fee calculatorCalculate your exact take-home payout, compare standard 15% vs 30% cuts, and test if external billing saves money.
- App cost calculatorEstimate a price range for an Android app or website from its features, in your local currency.
- Google Play launch checklistAn interactive checklist covering the store listing, policies, quality checks and release steps.
- Project brief generatorAnswer a few questions and get a clear, copyable brief you can send to any development team.
- App privacy policy generatorAnswer a few questions and get a plain-English privacy policy and a delete-account page for your Android or iOS app.
- App icon generatorUpload one image and download every Android, iOS and favicon size, with adaptive icon safe-zone checks.
- Play Store listing optimizerCheck your title, short and full description against keyword, readability and Google Play policy rules.
- LLM token & cost calculatorForecast production AI API expenses across OpenAI, Anthropic & DeepSeek. Model prompt caching savings and routing arbitrage.
- JWT debugger & security inspectorDecode, verify, and audit JSON Web Tokens for alg:none bypasses, key confusion attacks, expiry status and leaked secrets.
- Cron expression generator & explainerBuild, validate and translate crontab schedules for Linux, AWS EventBridge, GitHub Actions and Kubernetes.
- JSON to TypeScript & Zod converterInstantly convert raw API JSON payloads into clean TypeScript interfaces and production Zod v3 validation schemas.
- Docker Run to Docker Compose converterConvert raw docker run commands into production Docker Compose v2 YAML with automated security hardening and healthchecks.
- cURL to Code converter (Fetch, Axios, Python, Go)Translate cURL commands into JavaScript fetch, Axios, Python requests, Go, Rust, and Node.js with 100% in-browser privacy.
- SVG optimizer & React JSX converterMinify and clean vector SVGs, strip Figma metadata, and convert to production React JSX, React Native, or Vue components.
- Regex tester, debugger & ReDoS auditorTest regular expressions live with capture groups, replace previews, plain-English explanations, and catastrophic backtracking detection.
- JSON formatter, validator & diff viewerBeautify, validate, minify, sort keys, and compare two JSON payloads side by side with nested JSONPath diff inspection.
- SQL formatter & query linterBeautify PostgreSQL, MySQL, SQLite, and T-SQL queries and catch SELECT *, missing WHERE clauses, and slow non-sargable scans.
- CSS to Tailwind v4 converter & OKLCH paletteConvert raw CSS declarations to Tailwind v4 utility classes and generate accessible 50–950 OKLCH color scales with @theme export.
- UUID v7, UUID v4, ULID & NanoID generatorBulk generate cryptographically secure RFC 9562 UUID v7, UUID v4, ULID, and custom NanoIDs and decode embedded timestamps.
- Linux chmod permissions calculatorCalculate Linux octal and symbolic file permissions (755, 644, 600), configure SetUID/SetGID/Sticky bits, and export chmod commands.
- Robots.txt generator & AI bot blockerBuild valid robots.txt rules, control GPTBot, ClaudeBot, and CCBot AI crawlers, declare sitemaps, and test URL paths live.
- CSP & HTTP security headers generatorGenerate strict Content-Security-Policy, HSTS, and Permissions-Policy configs for Next.js, Vercel, Nginx, Apache, and Cloudflare.
- Markdown table & GitHub README builderCreate formatted Markdown tables visually, import CSV/TSV spreadsheets, and build GitHub alert callouts and Shields.io badges.
Tell us what you're building.
Send the problem, not a polished brief. We'll tell you what it actually takes to ship it: stack, timeline and cost, before you commit to anything.