Why extract the text
- Search and quote — find and copy passages across many Korean reports and notices.
- Translate or summarise — feed the content into tools that do not understand HWP.
- Archive — plain text opens in any program, decades from now.
Reading order
Text comes out in the order paragraphs are stored in the document, not page by page. Text-box content appears where the box is anchored and tables are read cell by cell. Headers, footers and page numbers are not part of the body and are skipped.
For HWPX files use HWPX to TXT; to keep formatting use HWP to DOCX.
What is an HWP file?
HWP is the document format of Hangul, the word processor from Hancom that is the standard in Korean government, schools and many companies. The current HWP 5.0 format, used since Hangul 2002, packs the body text, font and paragraph definitions and pictures into compressed data streams inside a single compound file.
Hancom publishes the format specification, but outside Korea almost no software opens HWP files, so they are usually converted to DOCX or PDF before being shared abroad or opened on a Mac or phone. Since Hangul 2014 the XML-based HWPX format is also used.
What is a TXT file?
A TXT file contains plain text only: no fonts, layout, images or hidden markup. That makes it the most portable document format there is. It opens on every device and in every text editor, is easy to search and process with scripts, and takes up very little space.
The trade-off is that formatting such as bold text, tables and pictures cannot be stored. Line breaks and blank lines are the only structure a TXT file has.