HTML media capture
Limited availability
The capture HTML attribute for <input type="file"> elements allows the user to capture media using the device's camera or microphone.
Browser support (view on caniuse.com)
- Chrome Not supported Bugs: 40291635
- Chrome Android 25 Released on 2013-02-27
- Edge Not supported
- Firefox Not supported
- Firefox for Android 79 Released on 2020-07-28
- Safari Not supported
- Safari on iOS 10 Released on 2016-09-13
Need this feature?
Leave a 👍 on the feedback issue
Don't forget to also leave a comment explaining your specific use case.
MDN documentation
Specifications
- HTML Media Capture, from Devices and Sensors Working Group (W3C).
Web Platform Tests (WPT)
View the latest WPT test results for this featureSurveys
- State of HTML 2025 > system capabilities > system capabilities pain points features
- State of HTML 2025 > system capabilities > system capabilities pain points
- State of HTML 2024 > reading list > reading list
- State of HTML 2024 > forms > forms features
- State of HTML 2024 > features > all features
- State of HTML 2023 > reading list > reading list
- State of HTML 2023 > forms > forms features
- State of HTML 2023 > features > all features
View as JSON | Edit this feature | Report an issue | Web-features entry: source, dist