-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathindex.html
More file actions
432 lines (409 loc) · 16.2 KB
/
index.html
File metadata and controls
432 lines (409 loc) · 16.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="Cache-Control" content="no-store, no-cache, must-revalidate, max-age=0" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<title>Mikuku's xlsx2md</title>
<meta name="description" content="Mikuku's xlsx2md is a local browser tool that reads Excel (.xlsx) workbooks and converts prose, tables, and images into Markdown." />
<meta property="og:title" content="Mikuku's xlsx2md" />
<meta property="og:description" content="Read Excel (.xlsx) locally in the browser and convert prose, tables, and images into Markdown." />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://igapyon.github.io/xlsx2md/" />
<meta property="og:image" content="https://igapyon.github.io/xlsx2md/docs/screenshots/xlsx2md-ogp.png" />
<meta property="og:image:alt" content="Mikuku's xlsx2md OGP image" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Mikuku's xlsx2md" />
<meta name="twitter:description" content="Read Excel (.xlsx) locally in the browser and convert prose, tables, and images into Markdown." />
<meta name="twitter:image" content="https://igapyon.github.io/xlsx2md/docs/screenshots/xlsx2md-ogp.png" />
<style>
:root {
--bg: #fbf8ff;
--bg-accent: #f6f1ff;
--surface: #fffbfe;
--surface-2: #f8f4ff;
--text: #1d1b20;
--heading: #2f1f52;
--muted: #514a5f;
--primary: #6750a4;
--primary-strong: #6c3eea;
--on-primary: #ffffff;
--secondary-bg: #efe9fa;
--secondary-text: #3f3564;
--outline: #e7dff6;
--outline-2: #d8cfee;
--code-bg: #f3edf9;
}
* { box-sizing: border-box; }
body {
margin: 0;
font-family: "BIZ UDPGothic", "Noto Sans JP", "Hiragino Sans", "Segoe UI", sans-serif;
background:
radial-gradient(circle at top left, rgba(108, 62, 234, 0.12), transparent 28%),
linear-gradient(180deg, var(--bg-accent) 0%, var(--bg) 100%);
color: var(--text);
min-height: 100vh;
display: grid;
place-items: center;
padding: 24px;
}
.card {
width: min(760px, 100%);
background: var(--surface);
border: 1px solid var(--outline);
border-radius: 24px;
padding: 30px;
box-shadow:
0 18px 44px rgba(53, 34, 92, 0.10),
inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
h1 {
margin: 0 0 12px;
font-size: clamp(2rem, 5vw, 2.8rem);
line-height: 1.1;
letter-spacing: -0.02em;
color: var(--heading);
}
h2 {
margin: 0 0 10px;
font-size: 1.2rem;
line-height: 1.25;
color: var(--heading);
}
p {
margin: 0 0 14px;
color: var(--muted);
line-height: 1.75;
}
ul {
margin: 0 0 16px;
padding-left: 1.2rem;
color: var(--muted);
line-height: 1.65;
}
ol {
margin: 0 0 16px;
padding-left: 1.35rem;
color: var(--muted);
line-height: 1.65;
}
.eyebrow {
display: inline-block;
margin-bottom: 12px;
padding: 0.34rem 0.72rem;
border-radius: 999px;
background: rgba(98, 0, 238, 0.14);
color: var(--heading);
font-size: 0.82rem;
font-weight: 700;
letter-spacing: 0.04em;
text-transform: uppercase;
}
.lead {
font-size: 1.02rem;
color: #4f4a40;
}
.link-row {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-top: 8px;
}
.link-btn,
.link-btn-secondary {
display: inline-block;
text-decoration: none;
padding: 0.82rem 1.35rem;
border-radius: 999px;
font-weight: 700;
transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease, border-color 120ms ease;
}
.link-btn {
background: var(--primary);
color: var(--on-primary);
box-shadow: 0 10px 24px rgba(103, 80, 164, 0.24);
}
.link-btn-secondary {
background: var(--secondary-bg);
color: var(--secondary-text);
border: 1px solid var(--outline-2);
}
.link-btn:hover,
.link-btn-secondary:hover {
transform: translateY(-1px);
}
.link-btn:hover {
background: var(--primary-strong);
box-shadow: 0 12px 26px rgba(108, 62, 234, 0.26);
}
.link-btn-secondary:hover {
background: #e7ddf8;
border-color: #cec1eb;
}
.divider {
border: 0;
border-top: 1px solid var(--outline);
margin: 24px 0;
}
.sub {
margin-top: 14px;
font-size: 0.9rem;
color: var(--muted);
}
.md-app-meta {
margin: 0 0 20px;
font-size: 0.9rem;
color: var(--muted);
}
.gallery {
display: grid;
grid-template-columns: 1fr;
gap: 16px;
margin-top: 18px;
}
@media (min-width: 720px) {
.gallery {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
.shot-card {
margin: 0;
padding: 14px;
background: var(--surface-2);
border: 1px solid var(--outline);
border-radius: 20px;
box-shadow: 0 10px 28px rgba(53, 34, 92, 0.08);
}
.shot-card img {
display: block;
width: 100%;
height: auto;
border-radius: 12px;
border: 1px solid var(--outline-2);
background: #f6f1ff;
}
.shot-card figcaption {
margin-top: 10px;
font-size: 0.92rem;
color: var(--muted);
line-height: 1.5;
}
code {
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
background: var(--code-bg);
color: var(--secondary-text);
padding: 0.12rem 0.38rem;
border-radius: 8px;
font-size: 0.92em;
}
.lang-block:last-child p:last-child {
margin-bottom: 0;
}
</style>
</head>
<body>
<main class="card">
<div class="eyebrow">Local Browser Tool</div>
<h1>Mikuku's xlsx2md</h1>
<div class="md-app-meta">Updated: 2026-04-11</div>
<section class="lang-block" aria-label="English What is this">
<h2>What is this?</h2>
<p>
<code>Mikuku's xlsx2md</code> is a single-file web app that reads Excel (<code>.xlsx</code>) files locally and extracts prose, tables, and images as Markdown.
</p>
<ul>
<li>Runs entirely in the browser with no server communication.</li>
<li>Converts the whole workbook automatically without sheet-by-sheet manual work.</li>
<li>Makes workbook content easier to reuse in generative AI workflows.</li>
</ul>
</section>
<hr class="divider" />
<section class="lang-block" aria-label="English Features">
<h2>Features</h2>
<ul>
<li>Reads <code>.xlsx</code> files directly in the browser and processes them locally.</li>
<li>Converts all sheets in a workbook in one pass.</li>
<li>Extracts prose, tables, and images.</li>
<li>Detects tables and converts them into Markdown tables.</li>
<li>Prefers cached formula values and parses formulas when needed.</li>
<li>Extracts chart configuration data.</li>
<li>Extracts shape source data as text and outputs SVG when supported.</li>
<li>Saves output as Markdown or ZIP.</li>
</ul>
</section>
<hr class="divider" />
<section class="lang-block" aria-label="English Use Cases">
<h2>Use Cases</h2>
<ul>
<li>Convert Excel workbooks into Markdown for generative AI input.</li>
<li>Extract prose, tables, and images into a reusable text-based format.</li>
<li>Process an entire workbook without manual work on each sheet.</li>
<li>Handle sensitive files locally without uploading them to a server.</li>
<li>Use the tool in a browser without installing additional applications.</li>
</ul>
</section>
<hr class="divider" />
<section class="lang-block" aria-label="English How to use">
<h2>How to use</h2>
<ol>
<li>Open <code>xlsx2md.html</code> in a web browser.</li>
<li>Select an <code>.xlsx</code> file.</li>
<li>After loading, Markdown for all sheets is generated automatically.</li>
<li>Save the result as Markdown or ZIP.</li>
</ol>
<div class="link-row">
<a class="link-btn" href="./xlsx2md.html?v=202603190000">Open Mikuku's xlsx2md</a>
<a class="link-btn-secondary" href="https://github.com/igapyon/xlsx2md" target="_blank" rel="noopener noreferrer">GitHub</a>
</div>
</section>
<hr class="divider" />
<section class="lang-block" aria-label="English How it works">
<h2>How it works</h2>
<ul>
<li>Read <code>.xlsx</code> files in the browser.</li>
<li>Open the file contents and read internal data.</li>
<li>Analyze sheet, image, and related workbook information.</li>
<li>Prefer cached formula values and parse formulas when needed.</li>
<li>Extract prose, tables, and images.</li>
<li>Detect tables and convert them into Markdown tables.</li>
<li>Extract chart configuration information only.</li>
<li>Extract shape source data as text, and output SVG when supported.</li>
<li>Assemble the workbook into Markdown output.</li>
</ul>
</section>
<hr class="divider" />
<section aria-label="Example">
<h2>Example</h2>
<div class="gallery">
<figure class="shot-card">
<img src="./docs/screenshots/xlsx2md_0.png" alt="Mikuku's xlsx2md application screenshot" loading="lazy" />
<figcaption>
English: This is the main <code>Mikuku's xlsx2md</code> screen where you load an Excel workbook and review the generated result.<br />
日本語: これは <code>Mikuku's xlsx2md</code> のメイン画面です。ここで Excel ブックを読み込み、生成された結果を確認します。
</figcaption>
</figure>
<figure class="shot-card">
<img src="./docs/screenshots/xlsx2md_1.png" alt="Input Excel workbook screenshot" loading="lazy" />
<figcaption>
English: The input workbook can contain prose, tables, images, and other spreadsheet content spread across multiple sheets.<br />
日本語: 入力となる Excel ブックには、地の文、表、画像などの情報が複数シートにまたがって含まれます。
</figcaption>
</figure>
<figure class="shot-card">
<img src="./docs/screenshots/xlsx2md_2a.png" alt="Converted Markdown text screenshot" loading="lazy" />
<figcaption>
English: After loading the workbook, <code>Mikuku's xlsx2md</code> extracts the content and generates Markdown text automatically.<br />
日本語: ブックを読み込むと、<code>Mikuku's xlsx2md</code> が内容を抽出し、Markdown テキストを自動生成します。
</figcaption>
</figure>
<figure class="shot-card">
<img src="./docs/screenshots/xlsx2md_2b.png" alt="Markdown preview screenshot" loading="lazy" />
<figcaption>
English: The generated Markdown can then be previewed as a readable document.<br />
日本語: 生成された Markdown は、文書として読みやすい形でプレビューできます。
</figcaption>
</figure>
</div>
</section>
<hr class="divider" />
<section class="lang-block" aria-label="Japanese What is this">
<h2>What is this?</h2>
<p>
<code>Mikuku's xlsx2md</code> は、Excel (<code>.xlsx</code>) をローカルで読み込み、地の文・表・画像を Markdown として抽出する Single-file Web App です。
</p>
<ul>
<li>ブラウザ内でローカルに動作し、サーバ通信を行いません。</li>
<li>Excel ブック全体を、シートごとの手作業なしで自動変換します。</li>
<li>生成AI に渡しやすい Markdown 形式で情報を取り出せます。</li>
</ul>
</section>
<hr class="divider" />
<section class="lang-block" aria-label="Japanese Features">
<h2>Features</h2>
<ul>
<li><code>.xlsx</code> ファイルをブラウザ内で読み込み、ローカル環境だけで処理します。</li>
<li>全シートをまとめて一括変換します。</li>
<li>地の文・表・画像を抽出します。</li>
<li>表を検知して Markdown の表へ変換します。</li>
<li>数式は保存済みの値を優先し、必要に応じて数式も解析します。</li>
<li>グラフは設定情報を抽出します。</li>
<li>図形は元データをテキストとして抽出し、対応できるものは SVG も出力します。</li>
<li>Markdown または ZIP として保存できます。</li>
</ul>
</section>
<hr class="divider" />
<section class="lang-block" aria-label="Japanese Use Cases">
<h2>Use Cases</h2>
<ul>
<li>Excel ブックの内容を、生成AI に渡しやすい Markdown に変換したい。</li>
<li>地の文・表・画像をまとめて抽出し、再利用しやすい形にしたい。</li>
<li>シートごとの手作業なしで、ブック全体を一括処理したい。</li>
<li>サーバにアップロードせず、ローカル環境だけで安全に処理したい。</li>
<li>Webブラウザだけで動かし、追加アプリをインストールせずに使いたい。</li>
</ul>
</section>
<hr class="divider" />
<section class="lang-block" aria-label="Japanese How to use">
<h2>How to use</h2>
<ol>
<li>Webブラウザで <code>xlsx2md.html</code> を開きます。</li>
<li><code>.xlsx</code> ファイルを選択します。</li>
<li>読み込み後、自動で全シートの Markdown が生成されます。</li>
<li>Markdown または ZIP を保存します。</li>
</ol>
<div class="link-row">
<a class="link-btn" href="./xlsx2md.html?v=202603190000">Mikuku's xlsx2md を開く</a>
<a class="link-btn-secondary" href="https://github.com/igapyon/xlsx2md" target="_blank" rel="noopener noreferrer">GitHub</a>
</div>
</section>
<hr class="divider" />
<section class="lang-block" aria-label="Japanese How it works">
<h2>How it works</h2>
<ul>
<li>Webブラウザ内で <code>.xlsx</code> ファイルを読み込む。</li>
<li>ファイルの中身を展開して内部データを読み取る。</li>
<li>シート、画像、関連するブック情報を解析する。</li>
<li>数式は保存済みの値を優先し、必要に応じて数式を解析する。</li>
<li>地の文、表、画像を抽出する。</li>
<li>表を検知して Markdown の表へ変換する。</li>
<li>グラフは設定情報のみを抽出する。</li>
<li>図形は元データをテキストとして抽出し、対応できるものは SVG も出力する。</li>
<li>ブック全体を Markdown 出力としてまとめる。</li>
</ul>
</section>
</main>
<script>
(() => {
const selector = 'a[href^="./xlsx2md.html"]';
const buildVersionStamp = () => {
const d = new Date();
return (
d.getFullYear().toString() +
String(d.getMonth() + 1).padStart(2, "0") +
String(d.getDate()).padStart(2, "0") +
String(d.getHours()).padStart(2, "0") +
String(d.getMinutes()).padStart(2, "0")
);
};
const stampAndGo = (anchor) => {
const u = new URL(anchor.getAttribute("href"), location.href);
u.searchParams.set("v", buildVersionStamp());
anchor.setAttribute("href", u.pathname + u.search);
};
document.addEventListener("click", (ev) => {
const a = ev.target.closest(selector);
if (!a) return;
stampAndGo(a);
}, true);
document.addEventListener("auxclick", (ev) => {
if (ev.button !== 1) return;
const a = ev.target.closest(selector);
if (!a) return;
stampAndGo(a);
}, true);
})();
</script>
</body>
</html>