AWS Signature V4 Builder
See the canonical request, signing key chain, Authorization header, signed curl and presigned URL — all computed in your browser.
Request to sign
GET no hostEnter the raw path; spaces and unicode are encoded for you. S3 keeps object keys verbatim, other services normalise dot segments and encode twice.
Query parameter
Header
Signing steps
Add credentials and a request to see the signature
Or load the S3 GET example. Keys are kept in memory only.
Examples
S3 GET with a Range header
GET /test.txt, host examplebucket.s3.amazonaws.com, Range: bytes=0-9, empty bodySignature=f0e8bdb87c964420e857bd35b5d6ed310bd44f0170aba48dd91039c6036bdb41The AWS documentation GET Object example; loading the S3 GET chip reproduces it.
Presigned S3 download
GET /test.txt, X-Amz-Expires=86400, date 20130524T000000Z, unsigned payloadhttps://examplebucket.s3.amazonaws.com/test.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIOSFODNN7EXAMPLE%2F20130524%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20130524T000000Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-Amz-Signature=aeeed9bbccd4d02ee5c0109b86d86835f995330da4c265957d157751f604d404The published AWS presigning example: authentication lives entirely in the query string.
About this tool
AWS Signature Version 4 (SigV4) authenticates a request by signing a canonical form of it. This builder walks the whole chain in the open: canonical request, hash of that request, string to sign, date/region/service signing key and final signature. When an AWS service answers SignatureDoesNotMatch, those intermediate strings are the only reliable way to find the byte that differs.
The canonical request fixes the HTTP method, percent-encoded path, sorted query string, sorted and trimmed headers, signed-header list and payload hash. Strict RFC 3986 encoding matters: spaces are %20 rather than +, header names are lowercase, duplicate headers are comma-joined, and query parameters are sorted by encoded key and then value. Amazon S3 encodes an object key once and leaves slashes untouched; most other services encode twice and normalize dot segments.
The final output is the Authorization header with Credential, SignedHeaders and Signature, plus x-amz-date, x-amz-security-token when present and x-amz-content-sha256 for S3. You can also generate an S3-style presigned URL, a quoted curl command and a JSON debug bundle. Credentials are imported into a temporary Web Crypto HMAC key in this tab: nothing is stored, logged or sent anywhere.
What this tool does not do
- Signs with SigV4 only; SigV4a and SigV2 are out of scope.
- Payload input is UTF-8 text: binary files must be hashed elsewhere and pasted as a hex hash using the payload-hash override in the library.
- The experimental chunked-payload seed signature is only the seed step, not a complete streaming upload implementation.
- No request is sent and no signature is verified against a live AWS service; validation of keys is format-only and fully offline.
- Timestamps are supplied by the browser and can be wrong: AWS rejects signatures outside its clock-skew window.
How to use this tool
Enter the request
Fill in access key ID, secret, optional session token, region, service, method, host, path, query parameters, headers and payload. Pick a service preset or import a full URL to fill the endpoint fields.
Set the signing time
Use the current UTC timestamp or paste an ISO 8601 basic value such as 20130524T000000Z. AWS rejects signatures whose timestamp is more than about 15 minutes from the server clock.
Inspect the intermediates
Read the canonical request and string to sign in the Intermediates tab, together with kDate, kRegion, kService and kSigning. Every value is copyable.
Choose an output
Use Signed headers or curl for a header-signed request; switch to Presigned URL mode to append X-Amz-* parameters and a signature to the URL instead.
Compare a failing signature
Paste the canonical request or string to sign from the AWS error into Compare and use the string-to-sign selector for errors that show that artifact. The diff labels lines as ours or theirs so differences are visible without colour.
Use cases
Debug SignatureDoesNotMatch
Compare your canonical request or string to sign with the one an AWS error or another SDK prints, line by line.
Call an AWS API without an SDK
Produce the exact Authorization header and curl command for a raw HTTP request from a script or terminal.
Share an S3 object for a limited time
Generate a presigned URL with a chosen expiry and inspect every X-Amz-* parameter before sharing it.
SigV4 building blocks
| Component | Rule applied here |
|---|---|
| Algorithm | AWS4-HMAC-SHA256 (SigV4 only; SigV4a is out of scope) |
| Canonical URI | RFC 3986 encoding of UTF-8 bytes; S3 encodes once, other services twice, slashes are segment separators |
| Canonical query | Strict %20 encoding, sorted by encoded key then value, duplicates preserved as k=v pairs |
| Canonical headers | Lowercase names, trimmed and space-collapsed values, comma-joined duplicates, sorted by name |
| Payload hash | Lowercase hex SHA-256 of UTF-8 bytes, or UNSIGNED-PAYLOAD; empty body has a fixed hash |
| Credential scope | YYYYMMDD/region/service/aws4_request, derived from the same date as x-amz-date |
| Signing key | HMAC(HMAC(HMAC(HMAC(AWS4+secret, date), region), service), aws4_request) |
The published S3 GET, PUT and presigned-URL examples from AWS documentation reproduce their documented signatures exactly.
Common mistakes
Mistake:Encoding + as a space in the canonical query.
Fix:Query values are decoded first and re-encoded strictly: a literal space must be %20, never +.
Mistake:Pre-encoding the path when the path field is meant to be raw.
Fix:Enter the raw path (spaces and unicode are fine). Turn on “Path is already percent-encoded” only when pasting a path from an existing URL.
Mistake:Forgetting x-amz-content-sha256 on S3.
Fix:The builder adds it automatically with the payload hash or UNSIGNED-PAYLOAD; keep the generated header when sending the request.
Mistake:Using an old timestamp with a freshly copied curl command.
Fix:AWS allows roughly ±15 minutes of clock skew. Press “Use current UTC time” and re-sign before running the command.
Mistake:Treating a presigned URL as harmless.
Fix:It carries a valid signature and is usable by anyone who has the link until it expires. Shorten the expiry and never paste session-token URLs into logs.
Frequently asked questions
Why does my AWS signature not match?
Almost always because one side canonicalized the request differently. Compare the canonical request first: check that spaces are %20 (not +), the path is encoded the right number of times for the service, query keys and values are sorted, header names are lowercase and values are trimmed, and that the same payload hash is used. The Compare tab accepts a pasted canonical request or string to sign and shows a line-by-line diff.
How is the canonical URI encoded?
Every UTF-8 byte except A-Z, a-z, 0-9, -, _, . and ~ is percent-encoded with uppercase hex; slashes stay as segment separators. Amazon S3 signs an object key with a single encoding pass and does not normalize dot segments or double slashes, because those can be part of the key. Other services use two passes and collapse dot segments. Enter a raw path and let the tool do the encoding; enable “Path is already percent-encoded” only when pasting from an existing URL.
What is the empty-body hash and when do I use UNSIGNED-PAYLOAD?
The SHA-256 of an empty string is e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855; use it for GET and other bodyless requests. For S3 you can instead set the literal UNSIGNED-PAYLOAD in both the canonical request and the x-amz-content-sha256 header if you do not want S3 to verify the body hash. Presigned S3 URLs use UNSIGNED-PAYLOAD by default.
How is a presigned URL different from an Authorization header?
A header-signed request carries the credential scope and signature in the Authorization header and x-amz-date header. A presigned URL moves X-Amz-Algorithm, X-Amz-Credential, X-Amz-Date, X-Amz-Expires, X-Amz-SignedHeaders and X-Amz-Signature into the query string, so a browser can use the URL without your SDK or secret. The URL is a bearer credential: anyone who has it can use it until it expires.
Are my access key and secret safe here?
The secret is used only to import a temporary HMAC key through the Web Crypto API in this browser tab. Nothing is stored in localStorage or cookies, nothing is logged, and no network request is made by the signer. The exported debug bundle redacts the secret and session token unless you explicitly choose to include them. Avoid sharing signed curl commands or presigned URLs that contain real credentials.
Why does AWS report RequestTimeTooSkewed?
SigV4 signatures are only accepted within roughly 15 minutes of the service's clock. A signature computed earlier and copied later can expire. Check x-amz-date, use the current UTC time button and re-sign immediately before running the curl command.
Do I need x-amz-content-sha256 for S3?
Yes. S3 requires it for SigV4 requests, with either the payload's hex SHA-256 or UNSIGNED-PAYLOAD. The builder adds the header automatically for s3 and s3-control when you do not supply it, and warns when it does so. Signing the header is optional for AWS's verification, but sending the matching header is not.
Can I use STS temporary credentials?
Yes. Paste the access key, secret and session token from STS. In header mode the tool adds x-amz-security-token to the signed headers; in presign mode it adds X-Amz-Security-Token to the URL query string. Treat any URL containing a session token as a short-lived secret.
References & standards
Related tools
AES Encryption
Encrypt and decrypt text with AES-GCM and a passphrase, fully in your browser. Uses PBKDF2 key derivation and the Web Crypto API — your data and keys never leave your device.
Android Network Security Config Builder
Generate network_security_config.xml with cleartext rules, trust anchors, certificate pinning and debug-only CAs — plus the manifest snippet and file placement checklist.
Ansible Vault Encrypt/Decrypt
Encrypt secrets into $ANSIBLE_VAULT;1.1;AES256 format or decrypt vault content with its password — locally in your browser, drop-in compatible with ansible-vault.
Argon2 Hash Generator & Verifier
Generate Argon2id/2i/2d hashes with proper m/t/p parameters and verify PHC strings — reference algorithm in your browser, nothing uploaded.
Basic Auth Generator
Generate an HTTP Basic Authentication header from a username and password. Produces the Authorization header and ready-to-use curl and fetch snippets. Runs fully client-side.
Bcrypt Generator & Verifier
Hash passwords with bcrypt and verify hashes — choose your cost factor (rounds 4–15), get a secure hash instantly, and check whether a password matches a hash. Runs entirely in your browser.