S3 URI & Path Converter
Convert S3 URIs, virtual-host style URLs, path-style URLs, and R2 links. Extract bucket name, object key, region, and generate copyable AWS CLI commands.
S3 URI & Endpoint Converter
Convert s3:// paths and HTTP URLs into Bucket Name, Object Key, and ready-to-use AWS CLI commands.
aws s3 cp s3://my-company-data/backups/2026/database.tar.gz ./database.tar.gzaws s3 presign s3://my-company-data/backups/2026/database.tar.gz --expires-in 3600S3 URL formats
The same object can be written several ways. The S3 URI s3://my-bucket/path/file.txt is used by the AWS CLI. The virtual-hosted URL https://my-bucket.s3.us-east-1.amazonaws.com/path/file.txt puts the bucket in the hostname. The path-style URL https://s3.us-east-1.amazonaws.com/my-bucket/path/file.txt puts it in the path. Cloudflare R2 uses https://ACCOUNT_ID.r2.cloudflarestorage.com/my-bucket/path/file.txt for the S3 API and r2.dev or custom domains for public access.
Why convert between them
Logs and consoles often show one format while your script needs another. Converting gives you the bucket and key for SDK calls, the s3:// URI for aws s3 cp and sync, and the HTTPS URL to test public access in a browser.
Generated AWS CLI commands
The parser builds aws s3 cp to download the object, aws s3 sync for the prefix, and aws s3 presign for a temporary link. For R2 and MinIO it adds the matching --endpoint-url.