UtilitySansar
Cloud

S3 URI / URL Parser

Convert freely between s3:// URIs, virtual-hosted URLs, path-style URLs, and S3 ARNs. Pull the bucket, key, region, and version ID out of any form, and get ready-to-run aws-cli commands for copying or listing.

Tool Summary Answer Block

This tool accepts structured input and returns deterministic output in the browser with no server upload.

Tool name
S3 URI / URL Parser
Input intent
Provide source content to transform, validate, or analyze.
Output intent
Receive normalized output suitable for copy, reuse, or debugging.
Example input
https://my-bucket.s3.us-east-1.amazonaws.com/reports/2025/q1.csv
Example output
bucket=my-bucket · key=reports/2025/q1.csv · region=us-east-1 · s3://my-bucket/reports/2025/q1.csv

Local processing / privacy notice

  • Inputs are processed in your browser session.
  • We do not send raw input/output values to our analytics endpoint.
  • Use reset/clear actions when working with confidential data.
Parsed entirely in your browser.
Examples:
Bucket
my-bucket
Key
reports/2025/q1.csv
Region
us-east-1
Addressing
Virtual-hosted HTTPS
s3:// URI
s3://my-bucket/reports/2025/q1.csv
HTTPS URL
https://my-bucket.s3.us-east-1.amazonaws.com/reports/2025/q1.csv
aws s3 cp
aws s3 cp s3://my-bucket/reports/2025/q1.csv ./
aws s3 ls
aws s3 ls s3://my-bucket/reports/2025/q1.csv

Tool Introduction

Convert freely between s3:// URIs, virtual-hosted URLs, path-style URLs, and S3 ARNs. Pull the bucket, key, region, and version ID out of any form, and get ready-to-run aws-cli commands for copying or listing.

Tool Overview

S3 exposes the same object under several addressing schemes: s3://bucket/key for the CLI, https://bucket.s3.<region>.amazonaws.com/key for virtual-hosted access, https://s3.<region>.amazonaws.com/bucket/key for legacy path-style, plus arn:aws:s3:::bucket/key for IAM. Each has slightly different rules around region segments, dualstack, and Transfer Acceleration. This tool normalizes them all: paste any form, get the others, and see warnings if the bucket name would fail S3 DNS rules.

Use Cases

  • Convert a console URL into an s3:// URI for the CLI
  • Pull the bucket and key out of a messy pre-signed URL (minus the signature)
  • Validate that a bucket name still obeys S3 DNS rules after a rename
  • Generate a quick "aws s3 cp" command from a URL you were given

Input/Output Examples

Input Intent
https://my-bucket.s3.us-east-1.amazonaws.com/reports/2025/q1.csv
Output Intent
bucket=my-bucket · key=reports/2025/q1.csv · region=us-east-1 · s3://my-bucket/reports/2025/q1.csv
Input Intent
s3://videos/intro.mp4
Output Intent
bucket=videos · key=intro.mp4 · region=—

FAQ

What are virtual-hosted and path-style URLs?+
Virtual-hosted URLs put the bucket in the hostname (bucket.s3.region.amazonaws.com). Path-style URLs put it in the path (s3.region.amazonaws.com/bucket). AWS is phasing out path-style for new buckets.
Does this work on pre-signed URLs?+
Yes — the parser will extract the bucket, key, and region. The signature query parameters are surfaced for reference but not validated.
What are the S3 bucket naming rules?+
3–63 characters, lowercase letters, numbers, dots, and hyphens; must start and end with a letter or number; no adjacent dots; not an IP address. The tool flags names that violate these rules.

Explore More Tools

Discover related utilities in the Cloud category below.

Browse all Cloud

Related tools

Handpicked utilities you might find useful