Files & File System
File Reader
Asynchronously read contents of local files as Data URLs, Text, or ArrayBuffer.
Checking support...
Feature Not SupportedThis browser does not support the File Reader Web API feature. Try testing in a modern browser (such as Chrome, Edge, Safari, or Firefox).
Advertisement
Interactive Input Workspace
Ready for input
Web API Execution Output
Result output will be displayed here after processing...
Native JavaScript Code Example (Zero Libraries)
const reader = new FileReader(); reader.onload = (e) => console.log(e.target.result); reader.readAsText(file);
About the File Reader Web API
FileReader object lets web applications asynchronously read the contents of files stored on the computer.
Specification:W3C & WHATWG Web API Standard
Sponsored Content