# Encode or decode Base64, URL and hex online

> Free encoder and decoder: Base64, URL, hex, HTML entities, Unicode, gzip, deflate and the SAML redirect chain. Auto-detects the encoding. In your browser.

- URL: https://iamops.dev/tools/encoder-decoder/
- Markdown: https://iamops.dev/tools/encoder-decoder.md
- Language: en
- Runs in your browser, nothing is uploaded.

Paste a string, pick a step or let the page guess. Stack steps to undo several layers, such as URL, Base64 and deflate. I keep this open next to the other tools.

## What can I paste here

Any string you want to encode or decode: Base64, a URL component, hex, HTML entities, or a SAML redirect value.

## What it does

- Encodes and decodes Base64, Base64url, hex, URL, HTML entities, Unicode escapes, binary, octal, ROT13, quoted-printable and JSON strings.
- Reads gzip, zlib deflate and raw deflate, including the SAML redirect chain of URL decode, Base64 and inflate.
- Auto-detect ranks the likely decodings, and chain mode shows the output of every step.

## Example use

Paste a SAMLRequest query value and use the SAML redirect codec, or press Auto-detect on an unknown blob.

## How to read the result

- Pick a codec and a direction. The result updates as you type.
- Add steps to stack encodings. Each step shows its own output, so you can see where a chain goes wrong.
- Auto-detect tries every decoding up to three steps deep and ranks the results that look like readable text. Use this chain loads one into the steps.
- Swap moves the output into the input and reverses the chain, so you can check the round trip.

## What it does not do

- Text is treated as UTF-8. Other character sets show as garbage.
- Encoding is not encryption. Anyone can reverse every step on this page.
- Auto-detect is a guess. Short or random-looking input can decode in several ways, so check the result.

## Questions people ask

### What can I paste here

Any string you want to encode or decode: Base64, a URL component, hex, HTML entities, or a SAML redirect value.

### How do I decode Base64, URL or hex text online?

Paste the text, choose the codec and set the direction to Decode. Or press Auto-detect and the page tries every common decoding for you. Nothing leaves your browser.

### How do I decode a SAML redirect value?

Choose the SAML redirect codec and paste the SAMLRequest value or the whole URL. It does the URL decode, the Base64 decode and the raw deflate inflate in one step.

### What is the difference between URL component and full URL encoding?

Component encoding escapes every reserved character, including / ? & and =, so it suits a single value. Full URL encoding keeps those characters so the address still works.

## Related

- [Certificate decoder](https://iamops.dev/tools/certificate-decoder.md): Decode an X.509 certificate, chain or CSR and read SANs, expiry, key size, fingerprints and chain order. Paste PEM, base64 DER or hex. Runs in your browser, nothing is uploaded. (https://iamops.dev/tools/certificate-decoder/)
- [SAML decoder and verifier](https://iamops.dev/tools/saml.md): Decode a SAMLRequest or SAMLResponse, check the XML signature and decrypt an EncryptedAssertion. Paste base64, raw XML or a redirect URL. Runs in your browser, nothing is uploaded. (https://iamops.dev/tools/saml/)
- [JWT decoder and verifier](https://iamops.dev/tools/jwt.md): Decode a JSON Web Token, show claims and expiry as dates, and verify the signature. Paste a compact JWT, then an HMAC secret, PEM key, JWK or JWKS. Runs in your browser, nothing is uploaded. (https://iamops.dev/tools/jwt/)
- [ID-JAG inspector](https://iamops.dev/tools/id-jag.md): Inspect an Identity Assertion JWT Authorization Grant against the IETF draft and get the curl requests. Paste a compact ID-JAG token. Runs in your browser, nothing is uploaded. (https://iamops.dev/tools/id-jag/)
- [DPoP proof builder and checker](https://iamops.dev/tools/dpop.md): Build a DPoP proof with a fresh ES256 key, or check typ, htm, htu, iat, ath, nonce and the cnf.jkt thumbprint. Paste a DPoP JWT and the method and URL. Runs in your browser, nothing is uploaded. (https://iamops.dev/tools/dpop/)
- [PKCE generator](https://iamops.dev/tools/pkce.md): Generate a PKCE code verifier and S256 challenge, or check that a pair matches, with authorize and token snippets. Paste a verifier and optional challenge, or generate them here. Runs in your browser, nothing is uploaded. (https://iamops.dev/tools/pkce/)
- [OIDC discovery and JWKS viewer](https://iamops.dev/tools/oidc-discovery.md): Read an OpenID Provider discovery document and JWKS, and flag missing PKCE, weak keys or risky grants. Type the issuer, or paste the JSON if CORS blocks the fetch. Runs in your browser. Nothing is uploaded to this site; the fetch goes from your browser to the issuer. (https://iamops.dev/tools/oidc-discovery/)
- [HAR inspector](https://iamops.dev/tools/har-inspector.md): Inspect a HAR file: filter requests, follow the OAuth or SAML flow, decode JWTs, and copy as curl with secrets redacted. Drop a HAR export from DevTools. Runs in your browser, nothing is uploaded. (https://iamops.dev/tools/har-inspector/)
- [HTTP client](https://iamops.dev/tools/http-client.md): Call an API from your browser with Basic, Bearer, an API key, or OAuth 2.0 (client credentials, authorization code with PKCE, device code, refresh, token exchange) and optional DPoP. Enter the URL and auth details, or paste a curl command, HAR or OpenAPI definition. The request goes from your browser, not through this site. If CORS blocks the call, the page offers curl instead. (https://iamops.dev/tools/http-client/)
- [SD-JWT and VC decoder](https://iamops.dev/tools/sd-jwt.md): Decode an SD-JWT or SD-JWT VC: split disclosures, recompute digests against _sd, and check the Key Binding JWT. Paste the compact string with ~ separators, and optionally the issuer JWK. Runs in your browser, nothing is uploaded. (https://iamops.dev/tools/sd-jwt/)
- [Passkey and WebAuthn decoder](https://iamops.dev/tools/webauthn.md): Decode a WebAuthn or passkey response: attestationObject, clientDataJSON and authenticator data, including flags, AAGUID, sign count and the COSE public key. Paste the credential JSON or the individual fields. Runs in your browser, nothing is uploaded. (https://iamops.dev/tools/webauthn/)
- [MCP auth discovery checker](https://iamops.dev/tools/mcp-auth.md): Check MCP authorization discovery: Protected Resource Metadata (RFC 9728) and the authorization server metadata, and flag missing PKCE S256, CIMD/DCR or resource indicators. Enter the server URL, or paste the JSON if CORS blocks the fetch. Requests go from your browser, nothing is uploaded to this site. (https://iamops.dev/tools/mcp-auth/)
- [Shared Signals SET decoder](https://iamops.dev/tools/shared-signals.md): Decode a Shared Signals Security Event Token (CAEP or RISC), explain the event type and the sub_id formats, and optionally verify the signature. Paste the SET JWT and optionally the transmitter JWKS. Runs in your browser, nothing is uploaded. (https://iamops.dev/tools/shared-signals/)
