# Reduce vhdx size?

**URL:** <https://boards.straightdope.com/t/reduce-vhdx-size/656027>\
**Category:** Factual Questions\
**Created:** [April 18, 2013, 11:26am UTC](https://boards.straightdope.com/t/reduce-vhdx-size/656027 "2013-04-18T11:26:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dog80](https://avatars.discourse-cdn.com/v4/letter/d/6bbea6/32.png) [@Dog80](https://boards.straightdope.com/u/Dog80)\
**Post date:** [April 18, 2013, 11:26am UTC](https://boards.straightdope.com/t/reduce-vhdx-size/656027/1 "2013-04-18T11:26:37Z")

</div>

I have a vhdx file that is 20GB in size. However, the data inside is just 5 GB. Is it possible to reduce the size so it fits in a 8GB flash drive?

---

<div class="post-metadata">

**Author:** ![yoyodyne](https://avatars.discourse-cdn.com/v4/letter/y/a9a28c/32.png) [@yoyodyne](https://boards.straightdope.com/u/yoyodyne)\
**Post date:** [April 18, 2013, 12:58pm UTC](https://boards.straightdope.com/t/reduce-vhdx-size/656027/2 "2013-04-18T12:58:35Z")

</div>

[http://blogs.msdn.com/b/virtual\_pc\_guy/archive/2012/05/07/shrinking-a-virtual-hard-disk-in-windows-8.aspx](http://blogs.msdn.com/b/virtual_pc_guy/archive/2012/05/07/shrinking-a-virtual-hard-disk-in-windows-8.aspx) or [Resize-VHD (Hyper-V) | Microsoft Learn](http://technet.microsoft.com/en-us/library/hh848535(v=wps.620).aspx)
