Skip to main content
bilivideodownloader.com
en

Free tool · runs offline

Bilibili BV ↔ AV converter

Paste a BV ID, an av number or a bilibili.com video link. You get both IDs and the links for each, worked out in your browser.

Try:,,

How BV and av IDs relate

Bilibili gave every video a sequential number, the av ID, until 23 March 2020. Sequential numbers made it easy to count uploads and crawl the site, so Bilibili started showing a 12-character BV ID in its links instead. The av number didn't go away: Bilibili's API still returns it as aid, and links like bilibili.com/video/av170001 still open the video.

A BV ID is the av number run through a fixed XOR and a base-58 encoding, with a few characters swapped. That's why the conversion needs no lookup and why the result is exact.

When you need the other ID

  • Old forum posts, comments and wiki pages cite av numbers that you want to open as modern links.
  • Scripts and spreadsheets that store aid from Bilibili's API need a BV ID to build a link, or the reverse.
  • Checking that two links with different-looking IDs point to the same video.

What this converter doesn't do

It doesn't look the video up, so it can't tell you the title or whether the video was deleted. It doesn't handle bangumi episode IDs (ep) or season IDs (ss), which are separate numbering schemes. To save a video once you have its ID, paste it into the Bilibili video downloader.

FAQ

Frequently Asked Questions About Bilibili Downloader

Video quality, sound, MP3, b23.tv links, and whether downloading is allowed.

What is the difference between a BV ID and an av number?

They are two names for the same video. Bilibili numbered videos with av IDs (av170001) until March 2020, then switched its links to 12-character BV IDs (BV17x411w7KC). Every video has both, and the BV ID is a reversible encoding of the av number.

Does this converter contact Bilibili?

No. The conversion is arithmetic that runs in your browser, so it works offline and tells you nothing about whether the video still exists, is public, or is region-locked. Open the bilibili.com link to check that.

Why do some converters give a different BV ID for large av numbers?

The formula published in 2020 only covers av numbers below about 2^30. Newer videos have larger av numbers and use an updated formula. This page uses the updated one, which gives the same BV ID as the old one for small numbers and stays correct up to 2^51.

Are BV IDs case-sensitive?

Yes, after the "BV" prefix. BV17x411w7KC and BV17X411w7KC are different IDs. Bilibili accepts "bv" in lowercase for the prefix, so this converter does too.

Can I paste a full link or a b23.tv short link?

Full bilibili.com/video/ links work, including ones with ?p= for multi-part videos. b23.tv short links hide the ID behind a redirect, so they need a request to Bilibili; paste those into the main downloader instead, which resolves them.