files/en-us/web/api/blob/slice/index.md
{{APIRef("File API")}}{{AvailableInWorkers}}
The slice() method of the {{domxref("Blob")}} interface
creates and returns a new Blob object which contains data from a subset of
the blob on which it's called.
slice()
slice(start)
slice(start, end)
slice(start, end, contentType)
start {{optional_inline}}
start that is larger than the size of the source
{{domxref("Blob")}}, the returned {{domxref("Blob")}} has size 0 and contains no data.end {{optional_inline}}
size.contentType {{optional_inline}}
type property. The default value is an empty string.A new {{domxref("Blob")}} object containing the specified subset of the data contained within the blob on which this method was called. The original blob is not altered.
{{Specifications}}
{{Compat}}