Drupal is a registered trademark of Dries Buytaert
Release: Leaflet 10.4.11 Minor update available for module leaflet (10.4.11). Release: Session Inspector 1.0.8 Minor update available for module session_inspector (1.0.8). Release: Migrate QA 2.0.4 Minor update available for module migrate_qa (2.0.4). Release: CKEditor Description List 3.0.0 Major update available for module ckeditor_descriptionlist (3.0.0). Release: FlowDrop 2.4.0 Minor update available for module flowdrop (2.4.0). Release: JWT Token Refresh 1.0.4 Minor update available for module jwt_token_refresh (1.0.4). Release: ConReg 1.0.0-beta1 First beta version released for module conreg (1.0.0-beta1). Release: AI Image Studio 1.0.0-beta8 New beta version released for module ai_image_studio (1.0.0-beta8). Usage Milestone: Role Theme Switcher Module role_theme_switcher crossed 1,000 active installs. Module Revived: Decoupled Router 2.0.7 Module decoupled_router updated after 11 months of inactivity (2.0.7).

URL to Video Filter

397 sites Security covered
View on drupal.org

This module creates a text filter that automatically embeds videos from supported sharing sites like YouTube and Vimeo when you paste their URLs into content. It functions similarly to the core "Convert URLs into links" filter, but instead of creating links, it displays the actual video player.

Overview

This module allows users to paste a URL from various video sharing websites, and upon submission replaces the URL with the video from that URL. The module does this by creating a new text filter, that can be added to any input format (such as Full HTML or Limited HTML). It works much the same as the Convert URLs into links text filter that ships with core, however instead of converting URLs to links, it instead converts the URLs into embedded videos.

Supported Services

Currently this module supports the following services:

  • YouTube
  • Twitter/X (as of 4.0.0-rc2)
  • Vimeo

As of version 4.x.x, video services are plugins, and additional services can be created by implementing new plugins. View the YouTube and Vimeo plugins for examples.

Please open a feature request in the support queue for other services.

Configuration

  1. Install the module as you would any module
  2. Edit or create a new text format at /config/content/formats
  3. Check the Convert URLs to embedded videos checkbox
  4. Select the video sharing services you wish to enable in the filter settings
  5. If you have the Limit allowed HTML tags and correct faulty HTML filter enabled, you will need to add the following in the Allowed HTML tags in the filter settings: <span class data-youtube-id data-twitter-id data-vimeo-id>
  6. If you have enabled the Convert URLs into links filter, ensure that this filter comes before it. Often, this filter should come before any other filters, but you may need to play around with the priority
  7. Create an entity with a text field that uses this filter, and paste a video URL from a service you've enabled directly into the body and save, and the URL will be replaced with the given video. URLs with query strings are supported.

Troubleshooting

If the video is not rendering, you may have to work with changing the order of the filters within the text format. For example, "Limit allowed HTML tags and correct faulty HTML" if enabled must come before "Convert URLs to embedded videos".

Development Roadmap

At this moment, nothing is planned. If you have support requests, please open an issue in the issue queue. New services will be added if they have an API allowing for videos embedded from their service.

Activity

Tracked releases
6
Tracked since
Apr 2026
Latest release
3 months ago
Releases (12 mo)
6 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Release date
4.0.0-rc2 Pre-release Apr 25, 2026
4.0.x-dev Dev Apr 22, 2026
4.0.0-rc1 Pre-release Apr 22, 2026
3.0.1 Stable Apr 9, 2026
3.0.x-dev Dev Apr 9, 2026
3.0.0 Stable Apr 9, 2026