온라인 텍스트 비교
브라우저 나란히 보기 텍스트·코드 Diff 검사기
왼쪽에는 원문을, 오른쪽에는 수정본을 붙여 넣으세요. 비교 결과, 줄 안 강조, 통합 패치는 모두 이 기기에 남습니다.
작업대는 이 브라우저의 JavaScript가 필요합니다. 스크립트가 없으면 패치 안내와 예제는 읽을 수 있지만 실시간 비교, 복사, 다운로드는 동작하지 않습니다.
{
"service": "checkout-api",
"version": "1.4.0",
"rateLimit": {
"windowSeconds": 60,
"maxRequests": 120
},
"featureFlags": {
"newCheckout": false,
"legacyCart": true,
"auditLog": true
},
"cors": {
"origins": [
"shop.example.com",
"admin.example.com"
],
"allowCredentials": true
}
}
{
"service": "checkout-api",
"version": "1.5.0",
"rateLimit": {
"windowSeconds": 60,
"maxRequests": 200
},
"featureFlags": {
"newCheckout": true,
"legacyCart": false,
"auditLog": true,
"expressPay": true
},
"cors": {
"origins": [
"shop.example.com",
"admin.example.com",
"preview.example.com"
],
"allowCredentials": true
}
}
upstream shop_app {
server 127.0.0.1:8080;
}
server {
listen 80;
server_name shop.example.com;
root /var/www/shop;
index index.html;
location / {
proxy_pass shop_app;
proxy_set_header Host $host;
proxy_read_timeout 30s;
}
location /assets/ {
expires 1h;
add_header Cache-Control "public";
}
}
upstream shop_app {
server 127.0.0.1:8080;
}
server {
listen 443 ssl http2;
server_name shop.example.com;
root /var/www/shop;
index index.html;
gzip on;
gzip_types text/css application/javascript application/json;
location / {
proxy_pass shop_app;
proxy_set_header Host $host;
proxy_read_timeout 90s;
proxy_http_version 1.1;
}
location /assets/ {
expires 30d;
add_header Cache-Control "public, immutable";
add_header X-Content-Type-Options nosniff;
}
}
SELECT o.id, o.created_at, c.email, SUM(i.qty * i.unit_price) AS total FROM orders o INNER JOIN customers c ON c.id = o.customer_id INNER JOIN order_items i ON i.order_id = o.id WHERE o.created_at >= '2024-01-01' AND o.status <> 'cancelled' GROUP BY o.id, o.created_at, c.email ORDER BY o.created_at DESC;
CREATE INDEX idx_orders_created_status
ON orders (created_at, status);
SELECT
o.id,
o.created_at,
c.email,
SUM(i.qty * i.unit_price) AS total
FROM orders o
LEFT JOIN customers c ON c.id = o.customer_id
INNER JOIN order_items i ON i.order_id = o.id
WHERE o.created_at >= '2025-01-01'
AND o.status IN ('paid', 'shipped')
GROUP BY o.id, o.created_at, c.email
ORDER BY o.created_at DESC;
# Release notes
## 1.2.0
- Format and minify a query in the browser.
- Add a --watch flag for local previews.
- Document the default port in the README.
Usage:
desk format --file query.sql
# Release notes
## 1.3.0
- Format and minify a query in the browser.
- Add a --dry-run flag before writing a file.
- Add a --watch flag for local previews.
- Document the default port and locale prefix in the README.
Usage:
desk format --file query.sql --dry-run
질문
계정이 필요한가요?
아닙니다. 비교는 이 브라우저에서 이루어집니다. 업로드할 파일도, 로그인도 없습니다.
비교가 이 기기를 떠나나요?
아닙니다. 줄 비교, 줄 안 강조, 복사, .patch / .diff 다운로드는 모두 이 페이지에 머무르며 서버로 보내지지 않습니다.
공백 무시와 대소문자 무시는 무엇을 하나요?
공백 무시는 비교할 때 앞뒤 공백과 연속된 내부 공백을 같다고 봅니다. 대소문자 무시는 글자의 대소문자를 구분하지 않습니다. 화면에 보이는 글자는 입력한 그대로입니다.
다운로드되는 패치에는 무엇이 들어 있나요?
--- / +++ 파일 헤더, @@ 헝크 범위, 문맥 3줄, + / - / 공백 표시가 있는 GNU 통합 diff입니다. .patch와 .diff의 내용은 같고 파일 이름만 다릅니다.
관련 도구와 참고
jmforu.com의 다른 도구와, 이 페이지가 작성하는 통합 형식에 대한 공식 설명입니다. 링크가 있다고 해서 이 빌드가 해당 주소를 확인했다는 뜻은 아닙니다.
- JM Hub — jmforu.com 도구 모음의 목록입니다.
- JM SQL Format — 업로드 없이 SQL을 포맷하고 검사하는 형제 도구입니다.
- JM Cron Helper — 브라우저에서 cron 식을 만들고 설명하는 형제 도구입니다.
- JM Timezone Meet — 여러 시간대에서 회의 겹침 시간을 찾는 형제 도구입니다.
- JM JWT Decode — 토큰을 전송하지 않고 JWT 클레임을 로컬에서 확인하는 형제 도구입니다.
- GNU 통합 diff 형식 — 이 도구가 작성하는 통합 형식(`---`, `+++`, `@@` 헝크 헤더)에 대한 Diffutils 공식 설명입니다.