Published 2026-07-24
Encode and decode Base64 and URL strings with base64-encode, base64-decode, url-encode, and url-decode. Practical tips for APIs, query strings, and debugging transport layers.
What the encoding section covers
FindMeTool encoding section groups base64-encode, base64-decode, url-encode, and url-decode as separate pages so you pick the direction you need without toggling modes. Each page focuses on one transformation so bookmarks stay obvious during incidents. Base64 turns binary or UTF-8 text into ASCII-safe strings for JSON fields, email attachments, and data URLs. URL encoding escapes reserved characters in query strings and path segments so servers parse parameters correctly.
These tools run in your browser on text you paste. They complement json-formatter when API samples mix encoded blobs with structured fields. Bookmark encode and decode pairs together so incident tickets stay fast: decode first to inspect, fix upstream, then encode again for reproduction steps.
Base64 in API and config work
OAuth clients, webhook signatures, and legacy SOAP payloads often wrap bytes in Base64. base64-decode reveals whether a field is JSON, gzip, or random binary before you escalate to the owning team. base64-encode helps when a vendor doc shows a sample and you need the encoded form for a curl reproduction.
Base64 is not encryption. Anyone who sees the string can decode it. Redact secrets before pasting into any browser tab, including FindMeTool. Padding characters at the end are normal; do not trim them when copying into strict parsers unless the spec says otherwise.
URL encoding for links and forms
Spaces, ampersands, plus signs, and unicode in query values break naive string concatenation. url-encode percent-escapes each unsafe byte so `hello world` becomes `hello%20world`. url-decode reverses the process when log aggregators print escaped URLs and you need readable parameters for a ticket.
Encode full parameter values, not entire URLs with scheme and host, unless you intentionally encode a nested URL as one value. JavaScript encodeURIComponent and server frameworks differ slightly on which characters they escape; compare FindMeTool output with your runtime when debugging mismatches.
Common Base64 mistakes
Wrong alphabet variants (URL-safe Base64 swaps + and /) cause decode failures that look like corrupt data. Check whether the producer documented URL-safe mode before you assume the payload is truncated.
UTF-8 text encoded as Base64 must decode back to valid Unicode. Mojibake usually means the producer used Latin-1 or double-encoded. Paste the decoded bytes into json-formatter only when you expect JSON; binary gzip headers are not valid JSON and that is fine.
Common URL encoding mistakes
Double encoding happens when a framework encodes an already escaped string. Symptoms include `%2520` instead of `%20`. url-decode twice in a scratch buffer to see if the value stabilizes, then fix the layer that encoded twice.
Plus signs in query strings sometimes mean space in application/x-www-form-urlencoded contexts and literal plus in others. Document which convention your API uses. FindMeTool pages show the escaped form; your server must agree on whether + or %20 represents space.
Workflow with json-formatter
Many REST errors embed Base64 JSON in a message field. Pipeline: base64-decode, json-formatter, comment on structure, then base64-encode again only if you must replay the exact wire format.
When configs store URL templates with placeholders, url-encode each dynamic segment before assembly. Paste intermediate values through url-encode to verify escaping before you merge into YAML checked into Git.
Privacy and paste discipline
Encoded strings hide content from casual glances, not from tools. Treat decoded output as sensitive when it contains tokens, emails, or internal hostnames. Redact before sharing formatted output in public Slack channels.
FindMeTool does not upload pasted text for typical encode and decode operations, but shoulder surfing on shared screens still matters. Clear tabs after incidents involving customer data.
Testing and cross-browser checks
After fixing encoding in your app, round-trip samples: encode with FindMeTool, paste into your client, decode server-side, compare. Small differences in newline handling between platforms are rare for Base64 but common when copying from PDF docs.
Keep a personal scratch file of golden samples (space, unicode emoji, ampersand chains) and rerun them when you upgrade HTTP libraries. Regression tests in CI should include at least one unicode URL case.
When to use dedicated libraries
Production services should use vetted library functions (Buffer in Node, btoa and atob with UTF-8 care in browsers, urllib.parse in Python) instead of copying from a web page. FindMeTool is for ad hoc debugging, code review, and teaching.
Bulk file encoding belongs in CLI tools like base64(1) or openssl, not manual paste. These pages target short strings that fit incident timelines and chat messages.
Pairing encode and decode pages
Open base64-encode beside base64-decode when writing docs that show both directions. Same for url-encode and url-decode when explaining query string bugs to junior teammates.
Link both pages in runbooks so on-call engineers do not guess which direction a bookmark uses at 2 a.m. Consistent naming in tickets (decoded vs encoded) reduces back-and-forth during Sev2 calls.
JWT and Basic auth adjacent tasks
JWT payloads are Base64URL, not standard Base64. If decode fails on a token segment, check whether the producer used URL-safe alphabet and omitted padding before you assume corruption.
HTTP Basic auth headers combine username and password with a colon, then Base64-encode the pair. Never paste live credentials into browser tools; use synthetic examples when demonstrating the format to new hires.
Email, attachments, and data URLs
MIME and data URLs wrap small images or fonts in Base64 inside HTML or CSS. Decoding helps you confirm file type magic bytes before you save blobs from legacy templates.
Large attachments belong in object storage with HTTPS links, not giant Base64 blocks in JSON. When you must inspect a small icon embedded as data URL, strip the header prefix before base64-decode.
Teaching encoding to new teammates
Walk through one url-encode example and one Base64 round-trip in onboarding. New backend engineers often confuse encoding with hashing or compression; spell out that encoding is reversible and deterministic for the same input bytes.
Assign a short exercise: encode a unicode city name, decode a sample from your staging logs, paste JSON into json-formatter. Repeat quarterly when the team hires interns or contractors who touch support tooling.
Checksums, hashes, and encoding confusion
MD5 and SHA outputs look like Base64 or hex but are one-way hashes, not encodings. If a field is labeled signature or digest, do not run base64-decode expecting readable JSON. Use hash tools or vendor docs instead.
Hex is another byte transport format. Hex uses 0-9 and a-f only; Base64 adds uppercase letters, plus, slash, and padding equals. When unsure, paste a short sample into the matching FindMeTool page before decoding an entire incident attachment.
Related tools
More tutorials
Browse the full Tutorials hub or open a related tool above to try the workflow in your browser.