About S3 URLs, URIs and bucket names
One object, six ways to write it
An S3 object is a bucket plus a key. Take the bucket fishapple-media in ap-southeast-2 and the key photos/2026/beach.jpg. Each AWS tool wants it written differently.
The S3 URI, used by the AWS CLI and SDK tools, is s3://fishapple-media/photos/2026/beach.jpg. It has no region and is not an HTTP address.
The virtual-hosted–style URL is the standard HTTPS form: https://fishapple-media.s3.ap-southeast-2.amazonaws.com/photos/2026/beach.jpg. The legacy global endpoint drops the region: https://fishapple-media.s3.amazonaws.com/photos/2026/beach.jpg. Prefer the regional host, because the global one can redirect and newer regions do not accept it.
The path-style URL puts the bucket in the path: https://s3.ap-southeast-2.amazonaws.com/fishapple-media/photos/2026/beach.jpg. It still works, but AWS treats it as legacy.
The ARN, used in IAM and bucket policies, is arn:aws:s3:::fishapple-media/photos/2026/beach.jpg. Its region and account fields are empty. The console link is https://ap-southeast-2.console.aws.amazon.com/s3/object/fishapple-media?region=ap-southeast-2&prefix=photos/2026/beach.jpg.
Bucket naming rules
A bucket name is 3–63 characters of lowercase letters, numbers, dots and hyphens. It must start and end with a letter or number, cannot contain two adjacent dots, and cannot look like an IP address. Some prefixes (xn--, sthree-) and suffixes (-s3alias, --ol-s3) are reserved.
Dots are legal but cause trouble. The S3 certificate covers *.s3.ap-southeast-2.amazonaws.com, and a wildcard matches only one label. In media.fishapple.com.s3.ap-southeast-2.amazonaws.com the bucket spans three labels, so HTTPS fails certificate validation. Dotted buckets also cannot use Transfer Acceleration. Use path-style URLs for them, and hyphens in new names.
S3 has no folders
S3 stores a flat list of keys. / is just a character in a key. The console builds folders with ListObjectsV2: it asks for keys under a prefix such as photos/ with / as the delimiter, and S3 rolls each deeper level up into one CommonPrefixes entry, such as photos/2026/. The console's Create folder button just writes an empty object whose key ends in /.
What this tool does
Paste any form above, a bare bucket name, or an s3a:// or s3n:// URI from Hadoop or Spark, and it writes out all the others plus an AWS CLI command. A region in the input wins. Otherwise the Region field supplies it, and an empty field gives the global endpoints. In the URLs each key segment is percent-encoded, so a space becomes %20. The bucket name is checked against the rules above, with a warning for dots. Nothing is sent to AWS.
Frequently asked questions
- What is the S3 bucket URL format?
- https://<bucket>.s3.<region>.amazonaws.com/<key>. The older path-style form, https://s3.<region>.amazonaws.com/<bucket>/<key>, also still works.
- What is the difference between an S3 URI and an S3 URL?
- An S3 URI (s3://bucket/key) names an object for AWS tools such as the CLI, and a browser cannot open it. An S3 URL is an HTTPS address any HTTP client can request, as long as the object is public or the URL is presigned.
- Is S3 path-style access deprecated?
- AWS planned to stop path-style access for buckets created after 30 September 2020, then postponed that with no new date. Path-style still works, but virtual-hosted style is the recommended form.